Commit 661723c3 authored by Dave Chinner's avatar Dave Chinner Committed by Chandan Babu R

xfs: use kvfree() in xfs_ioc_attr_list()

Wrongly converted from kmem_free() to kfree().
Reported-by: default avatarMatthew Wilcox <willy@infradead.org>
Fixes: 49292576 ("xfs: convert kmem_free() for kvmalloc users to kvfree()")
Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarChandan Babu R <chandanbabu@kernel.org>
parent 785dd131
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment