summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2010-10-26 18:52:53 +0200
committerJosef Bacik <josef@redhat.com>2010-10-26 18:52:53 +0200
commit382279336f428c80f344edfc30d53797e3e76146 (patch)
tree91b1acbc1f60430742ace0b9155c4a014b7dbbaf /Kbuild
parentBtrfs: fix error handling in btrfs_get_sb (diff)
downloadlinux-382279336f428c80f344edfc30d53797e3e76146.tar.xz
linux-382279336f428c80f344edfc30d53797e3e76146.zip
Btrfs: set trans to null in reserve_metadata_bytes if we commit the transaction
btrfs_commit_transaction will free our trans, but because we pass trans to shrink_delalloc we could possibly have a use after free situation. So instead if we commit the transaction, set trans to null and set committed to true so we don't keep trying to commit a transaction. This fixes a panic I could reproduce at will. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions