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

Artem Bityutskiy dedekind1 at gmail.com
Tue Aug 16 10:17:00 EDT 2011


On Mon, 2011-08-15 at 16:13 -0700, Brian Norris wrote:
> This way, we do not rely on guessing any paths; we simply use the
> sysfs information that is exposed, among other purposes, for cases
> cases like this, right? And then (as I stated on another message in
> this thread) we could even support the "region info" on newer kernels,
> if somebody ever does the work to export them. I think this solution
> involves no extra work right now, does not remove valuable features,
> does not make dirty assumptions about node names, and can take
> advantage of new sysfs features in the future. The main downside I see
> is the potential (documented) difference in information printed by
> `mtdinfo --all' vs. `mtdinfo /dev/mtdX'.

Yes, fair enough, just pushed your fix and cleanups, thanks!

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list