On Tue,  9 Oct 2012 16:56:58 -0300, Rodrigo Vivi <[email protected]> wrote:
> When cmd isn't IOC_IN | IOC_OUT a null "kdata" goes to "memset", which 
> dereferences it.
> 
> v2: simpler version just using usize = 0 instead of allocating useless memory
> 
> Signed-off-by: Rodrigo Vivi <[email protected]>

Presuming that coverity is smart enough not to complain about
memcpy(NULL, src, 0),

Reviewed-by: Chris Wilson <[email protected]>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to