[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070319033108.b51bed63.akpm@linux-foundation.org>
Date: Mon, 19 Mar 2007 03:31:08 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Pekka J Enberg <penberg@...helsinki.fi>
Cc: ast@...dv.de, clameter@....com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] slab: deal with NULL pointers passed to kmem_cache_free
On Mon, 19 Mar 2007 10:27:18 +0200 (EET) Pekka J Enberg <penberg@...helsinki.fi> wrote:
> From: Pekka Enberg <penberg@...helsinki.fi>
>
> This changes kmem_cache_free() to deal with NULL objects passed to it. The
> current behavior is inconsistent with kfree() so there are callers
> passing NULL to kmem_cache_free().
err, we don't want to do this, do we? It adds overhead for something which
we've carefully taught all our programmers to not do. The only known code
which will benefit from this is buggy.
> Andreas, can you please confirm this fixes the oops you reported on
> linux-scsi?
s/fix/hide/
-
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