[Intel-gfx] [PATCH] drm: Fix get_property logic fumble

Chris Wilson chris at chris-wilson.co.uk
Mon Apr 10 12:37:01 UTC 2017


On Mon, Apr 10, 2017 at 01:54:45PM +0200, Daniel Vetter wrote:
> Yet again I've proven that I can't negate conditions :(
> 
> Fixes: eb8eb02ed850 ("drm: Drop modeset_lock_all from the getproperty ioctl")

You also get to write the igt/kms_getproperty, starting with a 
	memset(prop_values, 0xc5, foo);
	drmIoctl(GETPROPERTY);
	igt_assert(!memchr(prop_values, 0xc5, bar));
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list