]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: fix oops on NULL trans handle in btrfs_truncate
authorChris Mason <chris.mason@oracle.com>
Tue, 8 Nov 2011 19:49:59 +0000 (14:49 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:55 +0000 (21:20 -0500)
commit454486f46cb425dd088c31aa5d8e15d6ea24242c
treee18242aba2ab3efb2de0178c52bf7648f9fbb3fa
parente9835a094df61c1af1c946357aff5a06aa11f490
Btrfs: fix oops on NULL trans handle in btrfs_truncate

If we fail to reserve space in the transaction during truncate, we can
error out with a NULL trans handle.  The cleanup code needs an extra
check to make sure we aren't trying to use the bad handle.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
(cherry picked from commit 917c16b2b69fc2eeb432eabca73258f08c58361e)
fs/btrfs/inode.c