Messages in this thread Patch in this message | | | Subject | Re: PROBLEM: kmem_cache_create: duplicate cache fat_cache | From | OGAWA Hirofumi <> | Date | Fri, 20 May 2005 22:16:22 +0900 |
| |
Oleg <graycardinal@pisem.net> writes:
> Thank you, but "goto opps", not "goto oops" in patch.
Ahh, sorry. I attached a fixed patch.
>>Didn't you run the modules_install after changed .config? > No, I'm don't run modules_install. I'm build all modules first and use it (if required) for all my kernel's... And I have one init script, where : > ... > /sbin/modprobe vfat > ... > I want test to load any modules. Why not ?
If you use the different config kernel, it may use the different structures size etc., it's obviously wrong and this miss match can be the cause of Oops. -- OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> ---
mm/slab.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff -puN mm/slab.c~slab-dont-call-bug mm/slab.c --- linux-2.6.12-rc4/mm/slab.c~slab-dont-call-bug 2005-05-20 22:04:21.000000000 +0900 +++ linux-2.6.12-rc4-hirofumi/mm/slab.c 2005-05-20 22:04:51.000000000 +0900 @@ -1488,8 +1488,10 @@ next: printk("kmem_cache_create: duplicate cache %s\n",name); up(&cache_chain_sem); unlock_cpu_hotplug(); - BUG(); - } + set_fs(old_fs); + cachep = NULL; + goto opps; + } } set_fs(old_fs); } _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |