commit | 917c16b2b69fc2eeb432eabca73258f08c58361e | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Tue Nov 08 14:49:59 2011 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Tue Nov 08 14:49:59 2011 -0500 |
tree | 3eb8b7d59bbb8c7d6cb54876428b485e72878692 | |
parent | 45ea6095c8f0d6caad5658306416a5d254f1205e [diff] |
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>