mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 03:47:43 +00:00
0f5ae3d2e9
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> |
||
---|---|---|
.. | ||
amd_flash.c | ||
cfi_cmdset_0001.c | ||
cfi_cmdset_0002.c | ||
cfi_cmdset_0020.c | ||
cfi_probe.c | ||
cfi_util.c | ||
chipreg.c | ||
fwh_lock.h | ||
gen_probe.c | ||
jedec_probe.c | ||
jedec.c | ||
Kconfig | ||
Makefile | ||
map_absent.c | ||
map_ram.c | ||
map_rom.c | ||
sharp.c |