summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-mod-log.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2022-11-10 07:06:29 +0100
committerDavid Sterba <dsterba@suse.com>2022-11-15 17:15:44 +0100
commit8cf96b409d9b3946ece58ced13f92d0f775b0442 (patch)
tree2744c0071ae12c3dcaf7639ec1f0784ec69e5064 /fs/btrfs/tree-mod-log.c
parentbtrfs: free btrfs_path before copying inodes to userspace (diff)
downloadlinux-8cf96b409d9b3946ece58ced13f92d0f775b0442.tar.xz
linux-8cf96b409d9b3946ece58ced13f92d0f775b0442.zip
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>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions