Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297205
b: refs/heads/master
c: 66c4c35
h: refs/heads/master
i:
  297203: 63a1c47
v: v3
  • Loading branch information
Christoph Lameter authored and Pekka Enberg committed Feb 6, 2012
1 parent bb991a0 commit 3cdad95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ad9500e16fe24aa55809a2b00e0d2d0e658fc71
refs/heads/master: 66c4c35c6bc5a1a452b024cf0364635b28fd94e4
3 changes: 2 additions & 1 deletion trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -3937,13 +3937,14 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
if (kmem_cache_open(s, n,
size, align, flags, ctor)) {
list_add(&s->list, &slab_caches);
up_write(&slub_lock);
if (sysfs_slab_add(s)) {
down_write(&slub_lock);
list_del(&s->list);
kfree(n);
kfree(s);
goto err;
}
up_write(&slub_lock);
return s;
}
kfree(n);
Expand Down

0 comments on commit 3cdad95

Please sign in to comment.