diff options
author | Dave Jones <davej@redhat.com> | 2012-04-12 22:03:56 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-04-12 22:03:56 +0200 |
commit | 4edc2ca388d62abffe38149f6ac00e749ea721c5 (patch) | |
tree | 6e31a2d72b9bb05f46960c0a8a789044f5dcf584 /fs/btrfs/free-space-cache.c | |
parent | Btrfs: check return value of bio_alloc() properly (diff) | |
download | linux-4edc2ca388d62abffe38149f6ac00e749ea721c5.tar.xz linux-4edc2ca388d62abffe38149f6ac00e749ea721c5.zip |
Btrfs: fix use-after-free in __btrfs_end_transaction
49b25e0540904be0bf558b84475c69d72e4de66e 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: Dave Jones <davej@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions