]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Fix locking gotcha in page_flip ioctl
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 30 Mar 2017 20:48:31 +0000 (22:48 +0200)
committerEric Anholt <eric@anholt.net>
Fri, 31 Mar 2017 00:28:24 +0000 (17:28 -0700)
commit35ca99adae70f4c3f9ed0a427a622cc54a8f162c
tree665f02f821fcca7c616f9b217c767fbcc0fbfb1f
parentb0649382b10b006831e744c236e8223bcb31636e
drm: Fix locking gotcha in page_flip ioctl

We want to lock the primary plane, not the cursor (which might be
optional). Real bad case of copy-paste fail, unfortunately our CI
didn't catch that because i915 does have a cursor plane.

Reported-by: Eric Anholt <eric@anholt.net>
Fixes: 339489691b71 ("drm: Roll out acquire context for the page_flip ioctl")
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170330204831.8225-1-daniel.vetter@ffwll.ch
Tested-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
drivers/gpu/drm/drm_plane.c