|
@@ -3813,7 +3813,9 @@ static int __init slab_sysfs_init(void)
|
|
|
|
|
|
list_for_each_entry(s, &slab_caches, list) {
|
|
|
err = sysfs_slab_add(s);
|
|
|
- BUG_ON(err);
|
|
|
+ if (err)
|
|
|
+ printk(KERN_ERR "SLUB: Unable to add boot slab %s"
|
|
|
+ " to sysfs\n", s->name);
|
|
|
}
|
|
|
|
|
|
while (alias_list) {
|
|
@@ -3821,7 +3823,9 @@ static int __init slab_sysfs_init(void)
|
|
|
|
|
|
alias_list = alias_list->next;
|
|
|
err = sysfs_slab_alias(al->s, al->name);
|
|
|
- BUG_ON(err);
|
|
|
+ if (err)
|
|
|
+ printk(KERN_ERR "SLUB: Unable to add boot slab alias"
|
|
|
+ " %s to sysfs\n", s->name);
|
|
|
kfree(al);
|
|
|
}
|
|
|
|