[JFFS2] kernel BUG at fs/jffs2/readinode.c:252
Manu Rao
MRao at AlienTechnology.com
Tue Jan 20 15:00:43 EST 2009
Hi all.
I have a kernel oops occurring at a point in /fs/jffs2/readinode.c on an
AT91 board /2.6.22 kernel/jffs2 Filesys on Samsung NAND flash.
Gdb led me to line 252:
...
while (this->overlapped)
this = tn_prev(this);
/* First node should never be marked overlapped */
BUG_ON(!this);
dbg_readinode("'this' found %#04x-%#04x (%s)\n",
...
My problem occurs when 'this' becomes NULL. I have structured the loop
differently and that makes the OOPS go away, but I am concerned about
the actual cause for the OOPS. From what I can tell, the structure/flag
is in memory, and not in the flash.
What could cause this to happen? I am also not sure if the BUG_ON should
read BUG_ON(!this) or BUG_ON(!this->overlapped) as suggested by the
comment.
Any/All help appreciated.
More information about the linux-mtd
mailing list