There is a cut and paste issue here. The bug is that we are allocating
more memory than necessary for msp_maps. We should be allocating enough
space for a map_info struct (144 bytes) but we instead allocate enough
for an mtd_info struct (1840 bytes). It's a small waste.
The other part of this is not harmful but when we allocated msp_flash
then we allocated enough space fro a map_info pointer instead of an
mtd_info pointer. But since pointers are the same size it works out
fine.
Anyway, I decided to clean up all three allocations a bit to make them
a bit more consistent and clear.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| amd76xrom.c | ||
| bfin-async-flash.c | ||
| cfi_flagadm.c | ||
| ck804xrom.c | ||
| dc21285.c | ||
| esb2rom.c | ||
| gpio-addr-flash.c | ||
| ichxrom.c | ||
| impa7.c | ||
| intel_vr_nor.c | ||
| ixp4xx.c | ||
| l440gx.c | ||
| lantiq-flash.c | ||
| latch-addr-flash.c | ||
| map_funcs.c | ||
| netsc520.c | ||
| nettel.c | ||
| pci.c | ||
| pcmciamtd.c | ||
| physmap.c | ||
| physmap_of.c | ||
| physmap_of_versatile.c | ||
| physmap_of_versatile.h | ||
| pismo.c | ||
| plat-ram.c | ||
| pmcmsp-flash.c | ||
| pxa2xx-flash.c | ||
| rbtx4939-flash.c | ||
| sa1100-flash.c | ||
| sbc_gxx.c | ||
| sc520cdp.c | ||
| scb2_flash.c | ||
| scx200_docflash.c | ||
| solutionengine.c | ||
| sun_uflash.c | ||
| ts5500_flash.c | ||
| tsunami_flash.c | ||
| uclinux.c | ||
| vmu-flash.c | ||