Skip to content

Commit 6c37059

Browse files
SinkFinderdjwong
authored andcommitted
xfs: use kmem_free to free return value of kmem_zalloc
In function xfs_test_remount_options(), kfree() is used to free memory allocated by kmem_zalloc(). But it is better to use kmem_free(). Signed-off-by: Pan Bian <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 8353a81 commit 6c37059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ xfs_test_remount_options(
12201220
tmp_mp->m_super = sb;
12211221
error = xfs_parseargs(tmp_mp, options);
12221222
xfs_free_fsname(tmp_mp);
1223-
kfree(tmp_mp);
1223+
kmem_free(tmp_mp);
12241224

12251225
return error;
12261226
}

0 commit comments

Comments
 (0)