btrfs: delayed-ref: double free in btrfs_add_delayed_tree_ref()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 24 Jun 2015 14:32:33 +0000 (17:32 +0300)
committerChris Mason <clm@fb.com>
Wed, 24 Jun 2015 19:28:03 +0000 (12:28 -0700)
commit5a5003df98d5a7f6834227885b7c9728f767cc27
tree98450d55ad5520f8d66a48f5f3868977f1b0c482
parentc40b7b064f6159df3a080595a498613d08206e59
btrfs: delayed-ref: double free in btrfs_add_delayed_tree_ref()

There is a cut and paste error so instead of freeing "head_ref", we free
"ref" twice.

Fixes: 3368d001ba5d ('btrfs: qgroup: Record possible quota-related extent for qgroup.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/delayed-ref.c