[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110426115713.d9a5c1cd.akpm@linux-foundation.org>
Date: Tue, 26 Apr 2011 11:57:13 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Eric Paris <eparis@...hat.com>
Cc: dave@...ux.vnet.ibm.com, steffen.klassert@...unet.com,
linux-kernel@...r.kernel.org,
linux-security-module@...r.kernel.org, selinux@...ho.nsa.gov,
sds@...ho.nsa.gov
Subject: Re: [PATCH 2/3] flex_arrays: allow zero length flex arrays
On Mon, 25 Apr 2011 21:45:37 -0400
Eric Paris <eparis@...hat.com> wrote:
> Just like kmalloc will allow one to allocate a 0 length segment of memory
> flex arrays should do the same thing. It should bomb if you try to use
> something, but it should at least allow the allocation.
Well I suppose that's vaguely sensible, but it adds additional code for
no apparent benefit.
IOW: why?
--
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