Forked from
Reform / reform-boundary-uboot
18848 commits behind the upstream repository.
Alison Wang
authored
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@freescale.com> Reviewed-by:
York Sun <yorksun@freescale.com>