Skip to content

Commit a9b054e

Browse files
committed
drm: don't check modeset locks in panic handler
Since we know that locking is broken in that case and it's more important to not flood the dmesg with random gunk. Cc: Dave Airlie <airlied@gmail.com> Cc: Borislav Petkov <bp@alien8.de> References: http://lkml.kernel.org/r/20130502000206.GH15623@pd.tnic Cc: stable@vger.kernel.org Reported-and-tested-by: Borislav Petkov <bp@suse.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 51cea1f commit a9b054e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/gpu/drm/drm_crtc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ void drm_warn_on_modeset_not_all_locked(struct drm_device *dev)
7878
{
7979
struct drm_crtc *crtc;
8080

81+
/* Locking is currently fubar in the panic handler. */
82+
if (oops_in_progress)
83+
return;
84+
8185
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)
8286
WARN_ON(!mutex_is_locked(&crtc->mutex));
8387

0 commit comments

Comments
 (0)