mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
xfs: use kvfree() in xfs_ioc_attr_list()
Wrongly converted from kmem_free() to kfree().
Reported-by: Matthew Wilcox <willy@infradead.org>
Fixes: 4929257613
("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>
This commit is contained in:
parent
785dd13152
commit
661723c3bd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user