Commit 013c1c5
btrfs: free btrfs_path before copying subvol info to userspace
btrfs_ioctl_get_subvol_info() frees the search path after the userspace
copy from the temp buffer @subvol_info. This can lead to a lock splat
warning.
Fix this by freeing the path before we copy it to userspace.
CC: stable@vger.kernel.org # 4.19+
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 8cf96b4 commit 013c1c5
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3105 | 3105 | | |
3106 | 3106 | | |
3107 | 3107 | | |
| 3108 | + | |
| 3109 | + | |
3108 | 3110 | | |
3109 | 3111 | | |
3110 | 3112 | | |
| |||
0 commit comments