]> git.baikalelectronics.ru Git - kernel.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>
Tue, 8 Nov 2011 19:49:59 +0000 (14:49 -0500)
commitc39385e5c3d00ffb1d7c688a25674155e3ced545
tree3eb8b7d59bbb8c7d6cb54876428b485e72878692
parenta23c3a3ad0b134270d1b14e5d6f2632de1b79d05
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>
fs/btrfs/inode.c