Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764915AbXFERXo (ORCPT ); Tue, 5 Jun 2007 13:23:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754202AbXFERXi (ORCPT ); Tue, 5 Jun 2007 13:23:38 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:52246 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752347AbXFERXh (ORCPT ); Tue, 5 Jun 2007 13:23:37 -0400 Date: Tue, 5 Jun 2007 10:23:35 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Pekka Enberg cc: Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org, Jeremy Fitzhardinge Subject: Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0) In-Reply-To: <4664F44C.4040206@cs.helsinki.fi> Message-ID: References: <84144f020706041213x1d241794u98e9b3ca29865033@mail.gmail.com> <46646747.2080803@cs.helsinki.fi> <20070604155355.bf29a3a8.akpm@linux-foundation.org> <4664F44C.4040206@cs.helsinki.fi> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 489 Lines: 11 On Tue, 5 Jun 2007, Pekka Enberg wrote: > FWIW, I am happy :-). We should add a comment to kmalloc() that we return > non-unique pointers for zero-length allocations though. Would you do that? Could you also add ZERO_SIZE_PTR support to SLAB? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/