Commit 8cf96b4
btrfs: free btrfs_path before copying fspath to userspace
btrfs_ioctl_ino_to_path() frees the search path after the userspace copy
from the temp buffer @ipath->fspath. Which potentially 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 418ffb9 commit 8cf96b4
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4232 | 4232 | | |
4233 | 4233 | | |
4234 | 4234 | | |
| 4235 | + | |
| 4236 | + | |
4235 | 4237 | | |
4236 | 4238 | | |
4237 | 4239 | | |
| |||
0 commit comments