diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index df5b893494fad70ee47850e4493241fdcd08b3d1..5ba2e810dc6e0eb07180fa34a8db0cdb0d75f78d 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3105,6 +3105,8 @@ static int btrfs_ioctl_get_subvol_info(struct inode *inode, void __user *argp) } } + btrfs_free_path(path); + path = NULL; if (copy_to_user(argp, subvol_info, sizeof(*subvol_info))) ret = -EFAULT;