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_bufs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-core/drm_bufs.c') diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index 3ff3527f..9ce7cfff 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -137,6 +137,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, } map->offset = (unsigned long)map->handle; if ( map->flags & _DRM_CONTAINS_LOCK ) { + dev->sigdata.lock = dev->lock.hw_lock = map->handle; /* Pointer to lock */ } break; -- cgit v1.2.3