[U-Boot] [PATCH] armv8/fsl-lsch3: fdt: Check the pointer returned from call to a function may be NULL

York Sun yorksun at freescale.com
Fri Oct 30 17:12:48 CET 2015



On 08/31/2015 07:47 PM, Alison Wang wrote:
> Pointer 'reg' returned from call to function 'fdt_getprop' may be
> NULL, will be passed to function and may be dereferenced there by
> passing argument 1 to function 'of_read_number'. So check pointer
> 'reg' first.
> 
> Signed-off-by: Alison Wang <alison.wang at freescale.com>
> ---


Applied to u-boot-fsl-qoriq. Awaiting upstream. Thanks.

York



More information about the U-Boot mailing list