Btrfs: fix subvol_name leak on error in btrfs_mount()
authorIlya Dryomov <idryomov@gmail.com>
Tue, 8 Nov 2011 17:15:05 +0000 (19:15 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 9 Nov 2011 20:53:38 +0000 (22:53 +0200)
commitf23c8af8ca2789eeb0ab9ea90c214f9694d96cc5
treee1acd02447bc510609f14372d4aa4c1349ed6000
parenta90e8b6fb80db43b029e1e76205452afa8bdc77a
Btrfs: fix subvol_name leak on error in btrfs_mount()

btrfs_parse_early_options() can fail due to error while scanning devices
(-o device= option), but still strdup() subvol_name string:

mount -o subvol=SUBV,device=BAD_DEVICE <dev> <mnt>

So free subvol_name string on error.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/super.c