提交 4634d71e 编写于 作者: J Jaegeuk Kim

f2fs: fix missing kmem_cache_free

This patch fixes missing kmem_cache_free when handling errors.
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 7dda2af8
......@@ -158,7 +158,7 @@ static void __set_nat_cache_dirty(struct f2fs_nm_info *nm_i,
head->entry_cnt = 0;
if (radix_tree_insert(&nm_i->nat_set_root, set, head)) {
cond_resched();
kmem_cache_free(nat_entry_set_slab, head);
goto retry;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册