From 661723c3bdaffa7d970a59987e37026bc5ed5657 Mon Sep 17 00:00:00 2001 From: Dave Chinner Date: Tue, 20 Feb 2024 11:09:23 +1100 Subject: [PATCH] xfs: use kvfree() in xfs_ioc_attr_list() Wrongly converted from kmem_free() to kfree(). Reported-by: Matthew Wilcox Fixes: 49292576136f ("xfs: convert kmem_free() for kvmalloc users to kvfree()") Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Chandan Babu R --- fs/xfs/xfs_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 7c35d76440972..9d6a75262045d 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; } -- 2.30.2