Skip to content

Commit 60724ed

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

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)