linux-stable-rt/drivers/mtd
David Woodhouse 0f5ae3d2e9 [MTD] Deal correctly with NOR chips which are smaller than the map window
We used to calculate the number of chips to be zero, allocate an array
of that size, then nasty things would happen when we attempt to access
the first object in that zero-sized array.

Now, if the number of _full_ chips that would fit into the map is zero,
we allocate an array of one anyway, and then artificially reduce the
total size of the resulting MTD device to fit in the map.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-05-14 01:40:50 +01:00
..
chips [MTD] Deal correctly with NOR chips which are smaller than the map window 2006-05-14 01:40:50 +01:00
devices mtd: fix memory leak in block2mtd_setup() 2006-05-14 01:21:31 +01:00
maps Trivial typo fixes in Kconfig files (MTD). 2006-05-12 17:35:02 +01:00
nand [MTD] Fix module refcounting in NAND board drivers. 2006-05-14 01:20:46 +01:00
onenand OneNAND: fix block command typo 2006-05-12 15:35:51 +01:00
Kconfig Trivial typo fixes in Kconfig files (MTD). 2006-05-12 17:35:02 +01:00
Makefile
afs.c
cmdlinepart.c [PATCH] mtd cmdlinepart: allow zero offset value 2006-03-31 12:18:48 -08:00
ftl.c
inftlcore.c [PATCH] Fix debug statement in inftlcore.c 2006-03-31 12:18:48 -08:00
inftlmount.c
mtd_blkdevs.c [PATCH] sem2mutex: drivers/mtd/ 2006-03-31 12:18:48 -08:00
mtdblock.c Simplify test for RAM devices 2006-04-17 15:48:16 +01:00
mtdblock_ro.c Make mtdblock_ro unconditionally readonly 2006-04-17 15:48:16 +01:00
mtdchar.c OneNAND: One-Time Programmable (OTP) support 2006-05-12 15:35:50 +01:00
mtdconcat.c BUG_ON() Conversion in drivers/mtd/ 2006-03-26 18:15:12 +02:00
mtdcore.c [PATCH] Kill ifdefs in mtdcore.c 2006-03-31 12:18:49 -08:00
mtdpart.c
nftlcore.c
nftlmount.c
redboot.c [PATCH] mtd/redboot: Handle holes in fis table 2006-03-31 12:18:49 -08:00
rfd_ftl.c