lkml.org 
[lkml]   [2006]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [openib-general] [PATCH 02/13] Device Discovery and ULLD Linkage
From
Date
On Fri, 2006-11-17 at 09:53 -0800, Bryan O'Sullivan wrote:
> Steve Wise wrote:
>
> > +static inline void *vzmalloc(int size)
> > +{
> > + void *p = vmalloc(size);
> > + memset(p, 0, size);
> > + return p;
> > +}
>
> This isn't checking the return value from vmalloc.
>

Oops...


> Also, we could do with a generic vzalloc and vcalloc, just as we now
> have kzalloc and kcalloc. There are lots of routines like this sitting
> around.
>
> <b

I guess I'll post a kernel patch to add these...



-
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: 2006-11-17 19:01    [W:0.043 / U:7.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site