drm: Fix get_property logic fumble
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 10 Apr 2017 11:54:45 +0000 (13:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Apr 2017 16:11:32 +0000 (18:11 +0200)
commit8cb68c83ab99a474ae847602f0c514d0fe17cc82
tree46d86ef710b185abe3ec1b0c304deaf254c48057
parent6ce2ca580f10d8d76cc3661a0b6b88d419725c9c
drm: Fix get_property logic fumble

Yet again I've proven that I can't negate conditions :(

Testcase: igt/kms_properties/get_property-sanity
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Fixes: eb8eb02ed850 ("drm: Drop modeset_lock_all from the getproperty ioctl")
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170410115445.13829-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_property.c