Work around a problem with ww_mutexes in the drm modeset lock.
authorjsg <jsg@openbsd.org>
Tue, 9 Jan 2018 13:48:36 +0000 (13:48 +0000)
committerjsg <jsg@openbsd.org>
Tue, 9 Jan 2018 13:48:36 +0000 (13:48 +0000)
commit564211fc8324e1aa1b07f1b6aef22d3c83ada672
treece38c98686dec488fc0068419198f5008a55447d
parentab77b743b55a8ead6d7dee9f088fe7850644f948
Work around a problem with ww_mutexes in the drm modeset lock.
Screen blanks often result in a NULL dereference in __ww_mutex_lock with
lock->acquired being non zero and lock->ctx NULL.  mpi@ also reported
it occuring when switching from Xorg to a virtual terminal.

ok mpi@
sys/dev/pci/drm/linux_ww_mutex.h