Btrfs: kfree correct pointer during mount option parsing
authorJosef Bacik <josef@redhat.com>
Thu, 25 Feb 2010 20:38:35 +0000 (20:38 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 8 Mar 2010 21:26:50 +0000 (16:26 -0500)
commitda495ecc0fb096b383754952a1c152147bc95b52
treebeec70bea515038c849c1b34836bba2455d90f2b
parent6bef4d317193d3badbbfa3f3c593758ace84a629
Btrfs: kfree correct pointer during mount option parsing

We kstrdup the options string, but then strsep screws with the pointer,
so when we kfree() it, we're not giving it the right pointer.

Tested-by: Andy Lutomirski <luto@mit.edu>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/super.c