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)
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>

No differences found