Btrfs: fix use-after-free when cloning a trailing file hole
authorFilipe Manana <fdmanana@gmail.com>
Sun, 29 Jun 2014 20:45:40 +0000 (21:45 +0100)
committerChris Mason <clm@fb.com>
Thu, 3 Jul 2014 14:04:10 +0000 (07:04 -0700)
commit14f5979633a67de81b9bd4a36a0eb99125728f9b
tree3a54c65611af64935341b49dd1d113f182a5d54e
parent0aeb8a6e67cddeac1d42cf64795fde0641a1cffb
Btrfs: fix use-after-free when cloning a trailing file hole

The transaction handle was being used after being freed.

Cc: Chris Mason <clm@fb.com>
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c