diff options
author | Tobin C. Harding <tobin@kernel.org> | 2019-05-15 19:07:50 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-05-17 23:28:00 +1000 |
commit | 672eaf37db9f99fd794eed2c68a8b3b05d484081 (patch) | |
tree | 414c35ce0f3bbb7c10f464e5d309be34f2a2fe5e /arch/powerpc/kernel/cacheinfo.c | |
parent | c179976cf4cbd2e65f29741d5bc07ccf8747a532 (diff) |
powerpc/cacheinfo: Remove double free
kfree() after kobject_put(). Who ever wrote this was on crack.
Fixes: 7e8039795a80 ("powerpc/cacheinfo: Fix kobject memleak")
Signed-off-by: Tobin C. Harding <tobin@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/cacheinfo.c')
-rw-r--r-- | arch/powerpc/kernel/cacheinfo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/cacheinfo.c b/arch/powerpc/kernel/cacheinfo.c index f2ed3ef4b129..862e2890bd3d 100644 --- a/arch/powerpc/kernel/cacheinfo.c +++ b/arch/powerpc/kernel/cacheinfo.c @@ -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; } |