Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54217
b: refs/heads/master
c: b416952
h: refs/heads/master
i:
  54215: 8aa3aac
v: v3
  • Loading branch information
matze authored and Linus Torvalds committed May 7, 2007
1 parent 0842d60 commit d03a617
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: bc0055aee40ba40627361d8ffd8530d315920f18
refs/heads/master: b4169525bc2336ea6581c6ff2aa88b2671e3b9f9
9 changes: 6 additions & 3 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2168,13 +2168,15 @@ kmem_cache_create (const char *name, size_t size, size_t align,
*/
res = probe_kernel_address(pc->name, tmp);
if (res) {
printk("SLAB: cache with size %d has lost its name\n",
printk(KERN_ERR
"SLAB: cache with size %d has lost its name\n",
pc->buffer_size);
continue;
}

if (!strcmp(pc->name, name)) {
printk("kmem_cache_create: duplicate cache %s\n", name);
printk(KERN_ERR
"kmem_cache_create: duplicate cache %s\n", name);
dump_stack();
goto oops;
}
Expand Down Expand Up @@ -2311,7 +2313,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,
left_over = calculate_slab_order(cachep, size, align, flags);

if (!cachep->num) {
printk("kmem_cache_create: couldn't create cache %s.\n", name);
printk(KERN_ERR
"kmem_cache_create: couldn't create cache %s.\n", name);
kmem_cache_free(&cache_cache, cachep);
cachep = NULL;
goto oops;
Expand Down

0 comments on commit d03a617

Please sign in to comment.