Bug in mtdblock_ro

Jörn Engel joern at wohnheim.fh-wedel.de
Thu Nov 15 08:51:38 EST 2001


Hi!

>>> the call in mtdblock_request to MTD_READ/WRITE passes nr_sectors, it
>>> should pass current_nr_sectors.
>>
>> Could you quickly add, what version has this problem? The filename
>> should be enough. When I get back from vacation (Thursday), I will
>> have a look at it.
>
> I'm travelling right now - so I can't, sorry - but it's a version I checked
> out from the anon CVS a few days (maybe 10) ago. With this bug fix it works
> great for me. Without the fix I get a kernel panic on trying to mount a
> mtd_ro partition as rootfs.

Erwin, this appears to be your code, if MODULE_AUTHOR is correct. Can
you have a look at it?
And David, Erwin, do you mind if I indent the request function to
Linus' beloved style? Makes reading so much easier.

Jörn

-- 
Every good work of software starts by 
scratching a developer's personal itch.




More information about the linux-mtd mailing list