OSDN Git Service

f2fs: use kfree() to free variables allocated by match_strdup()
authorWang Xiaojun <wangxiaojun11@huawei.com>
Wed, 17 Jun 2020 12:30:12 +0000 (20:30 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 18 Jun 2020 19:37:47 +0000 (12:37 -0700)
commitba87a45c23d645b25e1265b477e83cc1b73086e4
tree895a8d0c8a1ff9854ec11e4e5e4a7974075a961a
parentda52f8ade40b032eb8111a0fd514c8ac5f8f0f1b
f2fs: use kfree() to free variables allocated by match_strdup()

Use kfree() instead of kvfree() to free variables allocated
by match_strdup(). Because the memory is allocated with kmalloc
inside match_strdup().

Signed-off-by: Wang Xiaojun <wangxiaojun11@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c