Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c370590 authored by Pan Bian's avatar Pan Bian Committed by Darrick J. Wong
Browse files

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: default avatarPan Bian <bianpan2016@163.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 8353a814
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1220,7 +1220,7 @@ xfs_test_remount_options(
	tmp_mp->m_super = sb;
	error = xfs_parseargs(tmp_mp, options);
	xfs_free_fsname(tmp_mp);
	kfree(tmp_mp);
	kmem_free(tmp_mp);

	return error;
}