[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
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.

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

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-11-17 18:57    [W:0.122 / U:1.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site