Repository navigation
Commit 917c16b
committed
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>1 parent 45ea609 commit 917c16b
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6529 | 6529 | | |
6530 | 6530 | | |
6531 | 6531 | | |
6532 | | - | |
6533 | | - | |
6534 | | - | |
6535 | | - | |
| 6532 | + | |
| 6533 | + | |
| 6534 | + | |
| 6535 | + | |
| 6536 | + | |
6536 | 6537 | | |
6537 | | - | |
6538 | | - | |
6539 | | - | |
| 6538 | + | |
| 6539 | + | |
| 6540 | + | |
| 6541 | + | |
6540 | 6542 | | |
6541 | 6543 | | |
6542 | 6544 | | |
| |||
0 commit comments