[Intel-gfx] [PATCH] drm/i915: allocate large pointer arrays with vmalloc

Keith Packard keithp at keithp.com
Fri May 8 15:28:47 PDT 2009


On Fri, 2009-05-08 at 14:51 -0700, Jesse Barnes wrote:

> +static __inline void drm_free_large(void *ptr, int size)
> +{
> +	if (size <= PAGE_SIZE)
> +		return kfree(ptr);
> +
> +	vfree(ptr);
> +}

Ick. Taking a size here is mean. And error prone.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/intel-gfx/attachments/20090508/01418608/attachment.pgp 


More information about the Intel-gfx mailing list