From 7d5ba7ca6a4525b8908c285c2949bb946dfbbc54 Mon Sep 17 00:00:00 2001 From: Dave Chinner Date: Tue, 20 Feb 2024 11:24:41 +1100 Subject: [PATCH] xfs: use kvfree in xfs_ioc_getfsmap() Another incorrect conversion to kfree() instead of kvfree(). Fixes: 49292576136f ("xfs: convert kmem_free() for kvmalloc users to kvfree()") Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Chandan Babu R --- fs/xfs/xfs_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 9d6a75262045..d0e2cec6210d 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -1636,7 +1636,7 @@ xfs_ioc_getfsmap( } out_free: - kfree(recs); + kvfree(recs); return error; }