diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3205,12 +3205,12 @@ static inline int kmem_cache_close(struct kmem_cache *s) | |||
3205 | 3205 | ||
3206 | int __kmem_cache_shutdown(struct kmem_cache *s) | 3206 | int __kmem_cache_shutdown(struct kmem_cache *s) |
3207 | { | 3207 | { |
3208 | return kmem_cache_close(s); | 3208 | int rc = kmem_cache_close(s); |
3209 | } | ||
3210 | 3209 | ||
3211 | void __kmem_cache_destroy(struct kmem_cache *s) | 3210 | if (!rc) |
3212 | { | 3211 | sysfs_slab_remove(s); |
3213 | sysfs_slab_remove(s); | 3212 | |
3213 | return rc; | ||
3214 | } | 3214 | } |
3215 | 3215 | ||
3216 | /******************************************************************** | 3216 | /******************************************************************** |