diff options
author | Michel Daenzer <michel@daenzer.net> | 2002-09-21 23:18:54 +0000 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2002-09-21 23:18:54 +0000 |
commit | cfa1a918b6d6b2d0fd9ae0f58f5b86a15c443dcb (patch) | |
tree | 0b0c8cf97cc6323ed332c3595ce6741cae14d704 /linux/drm_bufs.h | |
parent | c4318a5c642d15ad3847a0b7a3185abf0c1ca219 (diff) |
make sure we never oops because the hardware lock pointer in the sigdata
structure is out of date
Diffstat (limited to 'linux/drm_bufs.h')
-rw-r--r-- | linux/drm_bufs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index 3ff3527f..9ce7cfff 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -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; |