Re: [PATCH] drm/i915: Reject garbage in unsed ctx create/destroy fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 11, 2015 at 08:44:47AM +0100, Daniel Vetter wrote:
> Forgotten ever since, but luckily we're at least good at memset.
> 
> Testecase: igt/gem_ctx_create/invalid-pad
> Testecase: igt/gem_ctx_bad_destroy/invalid-pad
> Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx>

I wonder if we used mbz instead of pad, we would have a slightly more
obvious reminder to zero the fields.

Looks like pad is only cleared fortuituosly in current userspace though.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux