[U-Boot] sf: Fix NULL pointer exception for flashes without lock methods
Tom Rini
trini at konsulko.com
Fri Nov 13 15:47:48 CET 2015
On Fri, Nov 13, 2015 at 02:46:26AM -0800, Bin Meng wrote:
> 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 at gmail.com>
> Reviewed-by: Fabio Estevam <fabio.estevam at freescale.com>
> Reviewed-by: Jagan Teki <jteki at openedev.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151113/4ac55502/attachment.sig>
More information about the U-Boot
mailing list