]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xfs: use kmem_free to free return value of kmem_zalloc
authorPan Bian <bianpan2016@163.com>
Sun, 17 Sep 2017 21:06:31 +0000 (14:06 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 20 Sep 2017 12:32:05 +0000 (07:32 -0500)
commit8ddef3f6c2a8cb8105ee91a80eddabaff9afe1bc
tree6c1880c39d5f71c69dc07825da2ac6c33f3c07c2
parent0b969d67682679a839f1df448be6764053b5ec2d
xfs: use kmem_free to free return value of kmem_zalloc

BugLink: http://bugs.launchpad.net/bugs/1718412
commit 6c370590cfe0c36bcd62d548148aa65c984540b7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/xfs/xfs_super.c