9
0
Fork 0
barebox/drivers/mtd
Zahari Doychev 433135c85c drivers/mtd: fix NULL pointer dereference in partition lock/unlock
Some mtd device does not support lock and unlock functions. Adding this check
avoids crashing when mtd_part_lock/unlock are called for such devices.

Signed-off-by: Zahari Doychev <zahari.doychev@linux.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-09 07:31:01 +02:00
..
devices mtd: m25p80: update Micron IDs 2014-05-15 14:14:13 +02:00
nand treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
nor mtd: fix mtd erasesize 2014-06-10 08:38:39 +02:00
ubi treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
Kconfig UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
Makefile drop CONFIG_PARTITION_NEED_MTD 2014-05-13 09:19:46 +02:00
core.c mtd: use long long dev param for size 2014-06-13 06:27:34 +02:00
mtd.h mtd: add private data to mtddev-hook 2012-09-03 11:06:01 +02:00
mtdoob.c mtd: Update internal API to support 64-bit device size 2014-03-12 21:26:37 +01:00
mtdraw.c mtd: Update internal API to support 64-bit device size 2014-03-12 21:26:37 +01:00
partition.c drivers/mtd: fix NULL pointer dereference in partition lock/unlock 2014-07-09 07:31:01 +02:00