9
0
Fork 0
barebox/drivers/mtd/ubi
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
..
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
attach.c UBI: simplify image sequence test 2014-01-07 11:03:24 +01:00
build.c mtd: ubi: avoid NULL pointer dereference in ubi_get_device 2014-03-23 09:46:47 +01:00
cdev.c Merge branch 'for-next/ubi' 2014-03-07 09:26:35 +01:00
debug.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
debug.h UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
eba.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
fastmap.c mtd: ubi: rework logging 2014-02-28 11:23:56 +01:00
io.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
kapi.c mtd: ubi: Add support for opening a volume by cdev 2013-08-07 08:44:48 +02:00
misc.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
ubi-barebox.h move print_hex_dump function to include/common.h 2013-08-07 08:44:48 +02:00
ubi-media.h UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
ubi.h mtd: ubi: rework logging 2014-02-28 11:23:56 +01:00
upd.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
vmt.c ubi: register ubi devices and volumes as devices 2014-02-26 08:33:18 +01:00
vtbl.c UBI: reimport UBI from Linux v3.10 2013-07-25 10:24:16 +02:00
wl.c UBI: fix refill_wl_user_pool() 2014-01-07 11:03:24 +01:00