summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorPan Bian2017-09-02 18:54:23 +0200
committerDarrick J. Wong2017-09-03 19:40:46 +0200
commit6c370590cfe0c36bcd62d548148aa65c984540b7 (patch)
tree6e8b5f8a968b8ac2c779978f920067213a6b922c /fs/xfs/xfs_super.c
parentxfs: open code end_buffer_async_write in xfs_finish_page_writeback (diff)
downloadkernel-qcow2-linux-6c370590cfe0c36bcd62d548148aa65c984540b7.tar.gz
kernel-qcow2-linux-6c370590cfe0c36bcd62d548148aa65c984540b7.tar.xz
kernel-qcow2-linux-6c370590cfe0c36bcd62d548148aa65c984540b7.zip
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 <bianpan2016@163.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 38aaacdbb8b3..c1c4c2ea1014 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -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;
}