commit | e0726db034a7bda0c858d987b898a71d7fb402d5 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Wed Jul 28 23:45:03 2010 -0400 |
committer | Wolfgang Denk <wd@denx.de> | Mon Aug 09 01:03:54 2010 +0200 |
tree | 2f01e36b14fe7688b95f64b0e5f7ad14c61bace4 | |
parent | 7a060a7b7c0f6f86fff5f80025086a0b2c608cc4 [diff] |
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>