[JFFS2] Fix slab panic
authorArtem B. Bityutskiy <dedekind@infradead.org>
Mon, 18 Jul 2005 11:21:23 +0000 (12:21 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Sun, 6 Nov 2005 15:31:04 +0000 (16:31 +0100)
commit6dac02a5e1bba0bb88ece50160fc4a64cccf30d1
tree68645a9df3dd236bc1f2a336f6c2c1657d366bb1
parent61a39b694137cef6059a0714c3b1847aabe53b90
[JFFS2] Fix slab panic

When JFFS22 is unable to read the root inode, the bad root inode object is not
freed and remains sticked in the jffs2_i slab cache. When we further try to
free the slab cache (e.g., on rmmod jffs2), slab allocator subsystem panics.
Fix this bug.

Signed-off-by: Artem B. Bityutskiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
fs/jffs2/fs.c