diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-29 03:45:03 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-08-08 23:03:54 (GMT) |
commit | a4e8d9f5f957c7e3972ca9d25f17de5f8acd8244 (patch) | |
tree | 2f01e36b14fe7688b95f64b0e5f7ad14c61bace4 /tools/env | |
parent | 9ed4a9582ff61225d46241a1c99795549722503c (diff) | |
download | u-boot-fsl-qoriq-a4e8d9f5f957c7e3972ca9d25f17de5f8acd8244.tar.xz |
flash_protect: check for NULL flash info
If a flash is unable to be detected, and then someone calls flash_protect
on it (like the common code does in flash_init), the flash_protect logic
will dereference a NULL pointer.
Since flash_protect already does sanity checking on the info structs, add
a NULL pointer check in there.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools/env')
0 files changed, 0 insertions, 0 deletions