提交 672eaf37 编写于 作者: T Tobin C. Harding 提交者: Michael Ellerman

powerpc/cacheinfo: Remove double free

kfree() after kobject_put(). Who ever wrote this was on crack.

Fixes: 7e803979 ("powerpc/cacheinfo: Fix kobject memleak")
Signed-off-by: NTobin C. Harding <tobin@kernel.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 c179976c
......@@ -767,7 +767,6 @@ static void cacheinfo_create_index_dir(struct cache *cache, int index,
cache_dir->kobj, "index%d", index);
if (rc) {
kobject_put(&index_dir->kobj);
kfree(index_dir);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册