Skip to content
Commit 4edc2ca3 authored by Dave Jones's avatar Dave Jones Committed by Chris Mason
Browse files

Btrfs: fix use-after-free in __btrfs_end_transaction



49b25e05 introduced a use-after-free bug
that caused spurious -EIO's to be returned.

Do the check before we free the transaction.

Cc: David Sterba <dsterba@suse.cz>
Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent e627ee7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment