diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-11-13 10:46:26 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-13 14:47:22 (GMT) |
commit | 439fcb9b4f717f5a583014acb3e75b789564867c (patch) | |
tree | 896aa273c728253b8a6061c7d6710a7bc4bba13a /include/config_cmd_all.h | |
parent | 9ac4fc82071ce346e3885118242ff45d22f69b82 (diff) | |
download | u-boot-439fcb9b4f717f5a583014acb3e75b789564867c.tar.xz |
sf: Fix NULL pointer exception for flashes without lock methods
commit c3c016c "sf: Add SPI NOR protection mechanism" introduced
flash_lock()/flash_unlock()/flash_is_locked() methods for SPI flash,
but not every flash driver supplies these. We should test these
methods against NULL before actually calling them.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include/config_cmd_all.h')
0 files changed, 0 insertions, 0 deletions