Skip to contentSkip to conversation

xfs: use kvfree in xfs_ioc_getfsmap()

PATCH Superseded Dave Chinner 2 participants 2 messages Feb 20, 2024 XFS filesystem

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: use kvfree in xfs_ioc_getfsmap()

From: Dave Chinner <[email protected]>

Another incorrect conversion to kfree() instead of kvfree().

Fixes 49292576136f ("xfs: convert kmem_free() for kvmalloc users to kvfree()")
---
 fs/xfs/xfs_ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_ioctl.c +1 -1
index 02605474dc19..8355498de430 100644
@@ -1636,7 +1636,7 @@ xfs_ioc_getfsmap(
 	}
 
 out_free:
-	kfree(recs);
+	kvfree(recs);
 	return error;
 }
 
Signature · 1 line
2.43.0