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

Keith Packard keithp at keithp.com
Sat May 9 00:28:47 CEST 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: signature.asc
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.sig>


More information about the Intel-gfx mailing list