[ 052/102] drm: dont check modeset locks in panic handler

From: Greg Kroah-Hartman
Date: Fri May 17 2013 - 18:15:46 EST

3.9-stable review patch. If anyone has any objections, please let me know.


From: Daniel Vetter <daniel.vetter@xxxxxxxx>

commit a9b054e8ab06504c2afa0e307ee78d3778993a1d 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@xxxxxxx>
References: http://lkml.kernel.org/r/20130502000206.GH15623@xxxxxxx
Cc: Dave Airlie <airlied@xxxxxxxxx>
Cc: Borislav Petkov <bp@xxxxxxxxx>
Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

drivers/gpu/drm/drm_crtc.c | 4 ++++
1 file changed, 4 insertions(+)

--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -78,6 +78,10 @@ void drm_warn_on_modeset_not_all_locked(
struct drm_crtc *crtc;

+ /* Locking is currently fubar in the panic handler. */
+ if (oops_in_progress)
+ return;
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/