xfs: use kvfree() in xfs_ioc_attr_list()
authorDave Chinner <dchinner@redhat.com>
Tue, 20 Feb 2024 00:09:23 +0000 (11:09 +1100)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 20 Feb 2024 05:08:05 +0000 (10:38 +0530)
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>
fs/xfs/xfs_ioctl.c

index 7c35d76440972033c6e5210a741e01da3481b02b..9d6a75262045df36186ead8261151e2a61a6f475 100644 (file)
@@ -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;
 }