patch-2.4.23 linux-2.4.23/drivers/char/drm/drm_lock.h

Next file: linux-2.4.23/drivers/char/drm/drm_memory.h
Previous file: linux-2.4.23/drivers/char/drm/drm_ioctl.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/char/drm/drm_lock.h linux-2.4.23/drivers/char/drm/drm_lock.h
@@ -236,7 +236,7 @@
 
 
 				/* Allow signal delivery if lock isn't held */
-	if (!_DRM_LOCK_IS_HELD(s->lock->lock)
+	if (!s->lock || !_DRM_LOCK_IS_HELD(s->lock->lock)
 	    || _DRM_LOCKING_CONTEXT(s->lock->lock) != s->context) return 1;
 
 				/* Otherwise, set flag to force call to

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)