lkml.org 
[lkml]   [2003]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] kmalloc + memset(foo, 0, bar) = kmalloc0
From
Date
On Iau, 2003-09-11 at 22:58, J.A. Magallon wrote:
> On 09.11, Jamie Lokier wrote:
> > viro@parcelfarce.linux.theplanet.co.uk wrote:
> > > Bad choice of name - too easy to confuse with kmalloc().
> >
> > kmalloc_and_zero() would be much clearer.
> >
>
> Why not kcalloc() ?

A kcalloc that also checked for maths overflows would probably
help avoid various errors and checks against ~0/sizeof(n) in
drivers we have now

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.063 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site