aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index be493bd63c31..d73f771d278f 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -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 */