diff options
Diffstat (limited to 'drivers/sgi')
-rw-r--r-- | drivers/sgi/char/shmiq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sgi/char/shmiq.c b/drivers/sgi/char/shmiq.c index 4f0a993da..f572f5afb 100644 --- a/drivers/sgi/char/shmiq.c +++ b/drivers/sgi/char/shmiq.c @@ -286,10 +286,10 @@ qcntl_ioctl (struct inode *inode, struct file *filp, unsigned int cmd, unsigned s = req.arg * sizeof (struct shmqevent) + sizeof (struct sharedMemoryInputQueue); v = sys_munmap (vaddr, s); - down(¤t->mmap_sem); + down(¤t->mm->mmap_sem); do_mmap(filp, vaddr, s, PROT_READ | PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 0); - up(¤t->mmap_sem); + up(¤t->mm->mmap_sem); shmiqs[minor].events = req.arg; shmiqs[minor].mapped = 1; |