Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f23c8af8 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

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: default avatarIlya Dryomov <idryomov@gmail.com>
parent a90e8b6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment