[BUG] mtdinfo -a: Tries to open NULL pointer for NOR with Eraseblock Regions

Mike Frysinger vapier at gentoo.org
Tue Aug 9 13:34:42 EDT 2011


On Mon, Aug 8, 2011 at 19:19, Brian Norris wrote:
> "Alternatively, --all only prints what it can get,
> and --help warns there _may_ be additional data not
> printed by --all (and to use ‘mtdinfo /dev/mtd<N>’)."

that's really the only other option of the three.
1: add region_info to sysfs
2: add a warning --all that it could be incomplete
3: have --all use the legacy lookup func to get /dev/mtd#

i dont have a preference between any of these 3.  obviously removing
region_info support is not an option.
-mike



More information about the linux-mtd mailing list