mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fix mtd_part_lock/unlock
@ 2014-07-08  7:37 Zahari Doychev
  2014-07-08  7:37 ` [PATCH] drivers/mtd: fix NULL pointer dereference in partition lock/unlock Zahari Doychev
  0 siblings, 1 reply; 3+ messages in thread
From: Zahari Doychev @ 2014-07-08  7:37 UTC (permalink / raw)
  To: barebox

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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-09  5:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-08  7:37 [PATCH] fix mtd_part_lock/unlock Zahari Doychev
2014-07-08  7:37 ` [PATCH] drivers/mtd: fix NULL pointer dereference in partition lock/unlock Zahari Doychev
2014-07-09  5:31   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox