diff options
author | 2009-07-22 11:28:53 +0800 | |
---|---|---|
committer | 2009-09-03 21:11:41 +0300 | |
commit | 5788d8ad6c113c589eeaaa48a173adbbe6b1cb3d (patch) | |
tree | d205f122f24be0853747be9c4d71049ed4e6d49f /include/linux/interrupt.h | |
parent | SLUB: fix ARCH_KMALLOC_MINALIGN cases 64 and 256 (diff) | |
download | wireguard-linux-5788d8ad6c113c589eeaaa48a173adbbe6b1cb3d.tar.xz wireguard-linux-5788d8ad6c113c589eeaaa48a173adbbe6b1cb3d.zip |
slub: release kobject if sysfs_create_group failed in sysfs_slab_add
When CONFIG_SLUB_DEBUG is enabled, sysfs_slab_add should unlink and put the
kobject if sysfs_create_group failed. Otherwise, sysfs_slab_add returns error
then free kmem_cache s, thus memory of s->kobj is leaked.
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'include/linux/interrupt.h')
0 files changed, 0 insertions, 0 deletions