diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4593,8 +4593,11 @@ static int sysfs_slab_add(struct kmem_cache *s) | |||
4593 | } | 4593 | } |
4594 | 4594 | ||
4595 | err = sysfs_create_group(&s->kobj, &slab_attr_group); | 4595 | err = sysfs_create_group(&s->kobj, &slab_attr_group); |
4596 | if (err) | 4596 | if (err) { |
4597 | kobject_del(&s->kobj); | ||
4598 | kobject_put(&s->kobj); | ||
4597 | return err; | 4599 | return err; |
4600 | } | ||
4598 | kobject_uevent(&s->kobj, KOBJ_ADD); | 4601 | kobject_uevent(&s->kobj, KOBJ_ADD); |
4599 | if (!unmergeable) { | 4602 | if (!unmergeable) { |
4600 | /* Setup first alias */ | 4603 | /* Setup first alias */ |