Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfs/xattr: mm/shmem: kernfs: release simple xattr entry in a right way
After commit fdc8522 ("kernfs: kvmalloc xattr value instead of kmalloc"), simple xattr entry is allocated with kvmalloc() instead of kmalloc(), so we should release it with kvfree() instead of kfree(). Fixes: fdc8522 ("kernfs: kvmalloc xattr value instead of kmalloc") Signed-off-by: Chengguang Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Hugh Dickins <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: Daniel Xu <[email protected]> Cc: Chris Down <[email protected]> Cc: Andreas Dilger <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Al Viro <[email protected]> Cc: <[email protected]> [5.7] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information