diff options
author | 2011-11-08 19:15:05 +0200 | |
---|---|---|
committer | 2011-11-09 22:53:38 +0200 | |
commit | f23c8af8ca2789eeb0ab9ea90c214f9694d96cc5 (patch) | |
tree | e1acd02447bc510609f14372d4aa4c1349ed6000 /fs/proc/array.c | |
parent | Btrfs: fix memory leak in btrfs_parse_early_options() (diff) | |
download | wireguard-linux-f23c8af8ca2789eeb0ab9ea90c214f9694d96cc5.tar.xz wireguard-linux-f23c8af8ca2789eeb0ab9ea90c214f9694d96cc5.zip |
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>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions