[PATCH] fix mtd_part_lock/unlock

Zahari Doychev zahari.doychev at linux.com
Tue Jul 8 00:37:34 PDT 2014


Hi,

Some mtd drivers does not define lock and unlock partition functions. This
patch avoids crashing when these undefined functions are called from barebox
code e.g. saveenv. Please review this patch and apply it if it is ok.

Thanks


Zahari Doychev (1):
  drivers/mtd: fix NULL pointer dereference in partition lock/unlock

 drivers/mtd/partition.c |    6 ++++++
 1 file changed, 6 insertions(+)

-- 
1.7.9.5




More information about the barebox mailing list