[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <84144f020610222338j69a7f58ak859e1d8e4a5b4526@mail.gmail.com>
Date: Mon, 23 Oct 2006 09:38:12 +0300
From: "Pekka Enberg" <penberg@...helsinki.fi>
To: "Amit Choudhary" <amit2030@...il.com>
Cc: "Linux Kernel" <linux-kernel@...r.kernel.org>, akpm@...l.org
Subject: Re: [PATCH 2.6.19-rc2] mm/slab.c: check kmalloc() return value.
On 10/22/06, Amit Choudhary <amit2030@...il.com> wrote:
> diff --git a/mm/slab.c b/mm/slab.c
> index 84c631f..613ae61 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -2021,6 +2021,7 @@ static int setup_cpu_cache(struct kmem_c
> } else {
> cachep->array[smp_processor_id()] =
> kmalloc(sizeof(struct arraycache_init), GFP_KERNEL);
> + BUG_ON(!cachep->array[smp_processor_id()]);
>
> if (g_cpucache_up == PARTIAL_AC) {
> set_up_list3s(cachep, SIZE_L3);
Looks good. You might want to send this to akpm@...l.org directly.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists