]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do error checking in btrfs_del_csums
authorJosef Bacik <josef@redhat.com>
Fri, 28 Jan 2011 18:44:44 +0000 (18:44 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 28 Jan 2011 21:42:34 +0000 (16:42 -0500)
commit0ed023f48d6ea28a657d08719703ad235bf52e74
treedbebfe94a571155d4f376e265026c9a1ca1e2f2f
parentf7212373314709ad55cd1e271125fbcd367f0a25
Btrfs: do error checking in btrfs_del_csums

Got a report of a box panicing because we got a NULL eb in read_extent_buffer.
His fs was borked and btrfs_search_path returned EIO, but we don't check for
errors so the box paniced.  Yes I know this will just make something higher up
the stack panic, but that's a problem for future Josef.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file-item.c