drm - Fix deadlock
commit1186f36acd32cef63e05cf084d4c8d0eac2f8510
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 2 Jun 2015 06:37:04 +0000 (1 23:37 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 2 Jun 2015 06:37:04 +0000 (1 23:37 -0700)
tree70284056f4689078dab2df28f23fc0aa62806f88
parentefad0641c1e028d2533d32ce9dac1a97d0655888
drm - Fix deadlock

* mutex_trylock()'s return value was inverted, resulting in a hanging
  lock.  Adjust the macro.

* This should fix multiple reports of deadlocks in i915 (intel).

Reported-by: ftigeot
sys/dev/drm/include/linux/mutex.h