Commit d88bf6b
btrfs: free btrfs_path before copying subvol info to userspace
commit 013c1c5 upstream.
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: [email protected] # 4.19+
Signed-off-by: Anand Jain <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent f218b40 commit d88bf6b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2788 | 2788 | | |
2789 | 2789 | | |
2790 | 2790 | | |
| 2791 | + | |
| 2792 | + | |
2791 | 2793 | | |
2792 | 2794 | | |
2793 | 2795 | | |
| |||
0 commit comments