* drm/nouveau: Work around a crash during boot if noaccel is set.
@ 2012-08-24 14:52 Ortwin Glück
0 siblings, 0 replies; only message in thread
From: Ortwin Glück @ 2012-08-24 14:52 UTC (permalink / raw)
To: linux-kernel, dri-devel
NB: still broken in 3.5 as well.
Signed-off-by: Ortwin Glück <odi@odi.ch>
---
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c
b/drivers/gpu/drm/nouveau/nv50_display.c
index b244d99..c7ffa63 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -650,6 +650,12 @@ nv50_display_vblank_crtc_handler(struct drm_device
*dev, int crtc)
struct nouveau_software_priv *psw = nv_engine(dev, NVOBJ_ENGINE_SW);
struct nouveau_software_chan *pch, *tmp;
+ if (!psw) {
+ WARN_ON_ONCE(1);
+ printk(KERN_ERR "NULL software engine\n");
+ return;
+ }
+
list_for_each_entry_safe(pch, tmp, &psw->vblank, vblank.list) {
if (pch->vblank.head != crtc)
continue;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-24 14:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 14:52 drm/nouveau: Work around a crash during boot if noaccel is set Ortwin Glück
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.