9
0
Fork 0
barebox/drivers/mtd
Philipp Zabel 4449fac898 mtd: ubi: avoid NULL pointer dereference in ubi_get_device
If the ubidetach command is given a number that passes the range check
in ubi_detach_mtd_dev, but at which index the ubi_devices array contains
a NULL pointer, ubi_get_device tries to dereference this NULL pointer
to increment the ubi device reference count.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-23 09:46:47 +01:00
..
devices mtd: m25p80: set driver id_table 2014-02-09 09:46:26 +01:00
nand Merge branch 'for-next/partitionhelper' 2014-03-07 09:25:53 +01:00
nor cfi_flash: fix NULL pointer dereference 2014-02-28 09:03:04 +01:00
ubi mtd: ubi: avoid NULL pointer dereference in ubi_get_device 2014-03-23 09:46:47 +01:00
Kconfig UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
Makefile UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
core.c mtd: register mtd partitions as real mtd devices 2014-02-26 08:33:18 +01:00
mtd.h mtd: add private data to mtddev-hook 2012-09-03 11:06:01 +02:00
mtdoob.c mtd: mtdoob: Do not create for partitions 2014-02-26 08:33:19 +01:00
mtdraw.c mtd: mtdraw: Do not create for partitions and devices without oob 2014-02-26 08:33:18 +01:00
partition.c mtd: register mtd partitions as real mtd devices 2014-02-26 08:33:18 +01:00