drm - Fix drm_modeset_unlock() panic
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 15 Mar 2021 04:37:00 +0000 (21:37 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 15 Mar 2021 04:37:00 +0000 (21:37 -0700)
commitfae36b11104b8205e65c6683845a4be9902ff63f
tree152aa155b8c1dbb80796c8c962e2c9de180cd307
parentcbc43ac303b5f81e556596e8539e323c1e403c1d
drm - Fix drm_modeset_unlock() panic

* Fix a bug in drm_modeset_lock() which sometimes improperly returned
  success when the ww mutex actually failed.

* This should fix a panic in the related drm_modeset_unlock() code
  that complains about unlocking a lock that isn't being held.
sys/dev/drm/drm_modeset_lock.c