diff options
author | Dave Jones <davej@fedoraproject.org> | 2014-04-08 00:39:32 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-08 01:36:13 +0200 |
commit | 54b6a731025f9528d44945a72b1f4e5946bb2d80 (patch) | |
tree | 7db33948c9ab6fb39b31d275185e0ce55315ac03 /arch/x86/include/asm/preempt.h | |
parent | slub: rework sysfs layout for memcg caches (diff) | |
download | linux-54b6a731025f9528d44945a72b1f4e5946bb2d80.tar.xz linux-54b6a731025f9528d44945a72b1f4e5946bb2d80.zip |
slub: fix leak of 'name' in sysfs_slab_add
The failure paths of sysfs_slab_add don't release the allocation of
'name' made by create_unique_id() a few lines above the context of the
diff below. Create a common exit path to make it more obvious what
needs freeing.
[vdavydov@parallels.com: free the name only if !unmergeable]
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include/asm/preempt.h')
0 files changed, 0 insertions, 0 deletions