summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_ioctl.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2024-02-20 03:09:23 +0300
committerChandan Babu R <chandanbabu@kernel.org>2024-02-20 08:08:05 +0300
commit661723c3bdaffa7d970a59987e37026bc5ed5657 (patch)
treeb5ce7aac2cc66c8b06b9c55b8c57a8d67e32c181 /fs/xfs/xfs_ioctl.c
parent785dd131525060c87994ff077ea3376f05c98304 (diff)
downloadlinux-661723c3bdaffa7d970a59987e37026bc5ed5657.tar.xz
xfs: use kvfree() in xfs_ioc_attr_list()
Wrongly converted from kmem_free() to kfree(). Reported-by: Matthew Wilcox <willy@infradead.org> Fixes: 49292576136f ("xfs: convert kmem_free() for kvmalloc users to kvfree()") Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r--fs/xfs/xfs_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
index 7c35d7644097..9d6a75262045 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -435,7 +435,7 @@ xfs_ioc_attr_list(
copy_to_user(ucursor, &context.cursor, sizeof(context.cursor)))
error = -EFAULT;
out_free:
- kfree(buffer);
+ kvfree(buffer);
return error;
}