Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330432
b: refs/heads/master
c: 208c435
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Pekka Enberg committed Sep 5, 2012
1 parent f966565 commit d137070
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 79576102afc24fcc6627d7a15691e432d9a2eacb
refs/heads/master: 208c4358dc4a8f0fe99e49eb8d21a869b01e7d34
8 changes: 4 additions & 4 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p)
static inline void sysfs_slab_remove(struct kmem_cache *s)
{
kfree(s->name);
kfree(s);
kmem_cache_free(kmem_cache, s);
}

#endif
Expand Down Expand Up @@ -3969,7 +3969,7 @@ struct kmem_cache *__kmem_cache_create(const char *name, size_t size,
if (!n)
return NULL;

s = kmalloc(kmem_size, GFP_KERNEL);
s = kmem_cache_alloc(kmem_cache, GFP_KERNEL);
if (s) {
if (kmem_cache_open(s, n,
size, align, flags, ctor)) {
Expand All @@ -3986,7 +3986,7 @@ struct kmem_cache *__kmem_cache_create(const char *name, size_t size,
list_del(&s->list);
kmem_cache_close(s);
}
kfree(s);
kmem_cache_free(kmem_cache, s);
}
kfree(n);
return NULL;
Expand Down Expand Up @@ -5224,7 +5224,7 @@ static void kmem_cache_release(struct kobject *kobj)
struct kmem_cache *s = to_slab(kobj);

kfree(s->name);
kfree(s);
kmem_cache_free(kmem_cache, s);
}

static const struct sysfs_ops slab_sysfs_ops = {
Expand Down

0 comments on commit d137070

Please sign in to comment.