drm/i915: Add a couple WARN()'s to catch missing locks
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 9 Jul 2014 23:22:11 +0000 (16:22 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Jul 2014 06:51:15 +0000 (08:51 +0200)
commitebcdd39eafb1d87e1aa31edfb65cd53bfc604346
tree57234ea0b321540cfba84f75bdf99eae57552669
parent4c34574fd9e6f3ed34ebe67fbabb0fef0b0754e3
drm/i915: Add a couple WARN()'s to catch missing locks

Add !mutex_is_locked() checks to intel_pin_and_fence_fb_obj() and
intel_unpin_fb_obj() to help catch failures to grab struct_mutex when
operating on fb objects.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c