Re: [PATCH] Catch kmalloc() failure in kmem_cache_init()

2007-04-02 Thread Pekka J Enberg
On Mon, 2 Apr 2007, Johannes Weiner wrote: > This patch makes kmem_cache_init() trigger a BUG when the calls to > kmalloc() fail. Altough the kernel would not boot anyway on failure, > this adds some clarity to the code. Indeed. This keeps popping up again and again, so Acked-by: Pekka Enberg <[E

[PATCH] Catch kmalloc() failure in kmem_cache_init()

2007-04-02 Thread Johannes Weiner
Hi, This patch makes kmem_cache_init() trigger a BUG when the calls to kmalloc() fail. Altough the kernel would not boot anyway on failure, this adds some clarity to the code. Signed-off-by: Johannes Weiner <[EMAIL PROTECTED]> diff --git a/mm/slab.c b/mm/slab.c index 57f7aa4..6d7e486 100644 ---

[PATCH] Catch kmalloc failure in kmem_cache_init() (was: [QUESTION] check for mem in slab)

2007-04-02 Thread Johannes Weiner
Hi, > On 3/30/07, Heiko Carstens <[EMAIL PROTECTED]> wrote: > >> in file mm/slab.c and routine kmem_cache_init() I found there > >> is no checking for allocated memory on line: > >> > >> /* 4) Replace the bootstrap head arrays */ > >> { > >> struct array_cache *ptr; > >>