]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: sf: fix map_physmem check
authorLiam Beguin <liambeguin@gmail.com>
Wed, 14 Mar 2018 23:15:11 +0000 (19:15 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 22 Mar 2018 17:25:20 +0000 (13:25 -0400)
commit10f087f73fff024c81439b50423ba69589d5c161
tree372de402e327e40b1d304b5b797d06e1a8e9627f
parentaa1ced7f09798700f3d96f39f6f5dc7d3d34cf66
cmd: sf: fix map_physmem check

Make sure 0x00 is a valid address to read to. If `addr` is 0x00 then
map_physmem() will return 0 which should be a valid address.

Signed-off-by: Liam Beguin <liambeguin@gmail.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
cmd/sf.c