Skip to contentSkip to conversation

xfs: use kvfree() in xfs_ioc_attr_list()

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

lore
Share & tools
lore
#0 lore raw

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

From: Dave Chinner <[email protected]>

Wrongly converted from kmem_free() to kfree().

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 7eeebcb6b925..02605474dc19 100644
@@ -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;
 }
 
Signature · 1 line
2.43.0