From cfa1a918b6d6b2d0fd9ae0f58f5b86a15c443dcb Mon Sep 17 00:00:00 2001 From: Michel Daenzer Date: Sat, 21 Sep 2002 23:18:54 +0000 Subject: make sure we never oops because the hardware lock pointer in the sigdata structure is out of date --- linux-core/drm_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-core/drm_lock.c') diff --git a/linux-core/drm_lock.c b/linux-core/drm_lock.c index c10cfe2c..c887d1f6 100644 --- a/linux-core/drm_lock.c +++ b/linux-core/drm_lock.c @@ -237,7 +237,7 @@ int DRM(notifier)(void *priv) /* 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 -- cgit v1.2.3