Btrfs: kfree correct pointer during mount option parsing
commit171d73b2f89f57d6696d0aaf42fd5ff8ae19801f
authorJosef Bacik <josef@redhat.com>
Thu, 25 Feb 2010 20:38:35 +0000 (25 20:38 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:14 +0000 (21 12:44 -0700)
tree41a5e63656fd61b6897bd3c1fed3217be0d758bd
parent3eb88cf70fd483e2333b1954e35b355deb5e1f06
Btrfs: kfree correct pointer during mount option parsing

commit da495ecc0fb096b383754952a1c152147bc95b52 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/super.c