[openib-general] [PATCH 02/13] Device Discovery and ULLD Linkage

Bryan O'Sullivan bos at pathscale.com
Fri Nov 17 09:53:16 PST 2006


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

	<b




More information about the general mailing list