mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
slob: handle SLAB_PANIC flag
kmem_cache_create() for slob doesn't handle SLAB_PANIC. Signed-off-by: Matt Mackall <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3a2cba993b
commit
bc0055aee4
1 changed files with 2 additions and 1 deletions
|
|
@ -298,7 +298,8 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
|
|||
c->align = (flags & SLAB_MUST_HWCACHE_ALIGN) ? SLOB_ALIGN : 0;
|
||||
if (c->align < align)
|
||||
c->align = align;
|
||||
}
|
||||
} else if (flags & SLAB_PANIC)
|
||||
panic("Cannot create slab cache %s\n", name);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue