summaryrefslogtreecommitdiffstats
path: root/drivers/sgi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sgi')
-rw-r--r--drivers/sgi/char/shmiq.c4
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(&current->mmap_sem);
+ down(&current->mm->mmap_sem);
do_mmap(filp, vaddr, s, PROT_READ | PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 0);
- up(&current->mmap_sem);
+ up(&current->mm->mmap_sem);
shmiqs[minor].events = req.arg;
shmiqs[minor].mapped = 1;