[BUG] re-modprobe a nand controller driver module will cause system crash.

Bryan Wu cooloney at kernel.org
Wed Oct 22 21:06:21 EDT 2008


On Wed, Oct 22, 2008 at 10:59 PM, Mike Frysinger <vapier.adi at gmail.com> wrote:
> On Tue, Oct 21, 2008 at 23:24, Bryan Wu wrote:
>> Did anyone meet this issue before?
>
> actually i think we can see the same issue with the m25p80 driver ?
> if i build it as a module and load/unload it, it crashes with same
> name errors ...
>

Right, this is a common bug for mtd core.

-Bryan

> root:/> rmmod m25p80
> root:/> modprobe m25p80
> m25p80 spi0.2: w25x10 (128 Kbytes)
> Creating 3 MTD partitions on "m25p80":
> 0x00000000-0x00040000 : "bootloader(spi)"
> mtd: partition "bootloader(spi)" extends beyond the end of device
> "m25p80" -- size truncated to 0x20000
> kobject_add_internal failed for 31:0 with -EEXIST, don't try to
> register things with the same name in the same directory.
> <crash message>
> -mike
>



More information about the linux-mtd mailing list