]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix a BUG_ON crash by checking that page has buffers attached to it
authorTheodore Ts'o <tytso@mit.edu>
Thu, 1 Oct 2009 02:57:41 +0000 (22:57 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:12 +0000 (08:07 -0800)
commit2489f42e40972d65e50a0b842297f90ce02e6cb0
treebfd871751718ab75aa69cfb1b6f575bc3effa9be
parent28c72b7fbc403ec439b0108e6559c9c67a3afe8d
ext4: fix a BUG_ON crash by checking that page has buffers attached to it

(cherry picked from commit 1f94533d9cd75f6d2826018d54a971b9cc085992)

In ext4_num_dirty_pages() we were calling page_buffers() before
checking to see if the page actually had pages attached to it; this
would cause a BUG check crash in the inline function page_buffers().

Thanks to Markus Trippelsdorf for reporting this bug.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c