xfs: use kvfree() in xfs_ioc_attr_list()
PATCH 1/1 xfs: use kvfree() in xfs_ioc_attr_list()
From: Dave Chinner <[email protected]>
Wrongly converted from kmem_free() to kfree().
Reported-by Matthew Wilcox <[email protected]>
Fixes 49292576136f ("xfs: convert kmem_free() for kvmalloc users to kvfree()")
Signed-off-by Dave Chinner <[email protected]>
--- fs/xfs/xfs_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_ioctl.c +1 -1
@@ -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; }
Signature · 1 line
2.43.0
Looks good:
Reviewed-by Christoph Hellwig <[email protected]>