aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc/shm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 4f133d24030f..fe7ae73b6981 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -698,7 +698,6 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
698 int err; 698 int err;
699 unsigned long flags; 699 unsigned long flags;
700 unsigned long prot; 700 unsigned long prot;
701 unsigned long o_flags;
702 int acc_mode; 701 int acc_mode;
703 void *user_addr; 702 void *user_addr;
704 703
@@ -725,11 +724,9 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
725 724
726 if (shmflg & SHM_RDONLY) { 725 if (shmflg & SHM_RDONLY) {
727 prot = PROT_READ; 726 prot = PROT_READ;
728 o_flags = O_RDONLY;
729 acc_mode = S_IRUGO; 727 acc_mode = S_IRUGO;
730 } else { 728 } else {
731 prot = PROT_READ | PROT_WRITE; 729 prot = PROT_READ | PROT_WRITE;
732 o_flags = O_RDWR;
733 acc_mode = S_IRUGO | S_IWUGO; 730 acc_mode = S_IRUGO | S_IWUGO;
734 } 731 }
735 if (shmflg & SHM_EXEC) { 732 if (shmflg & SHM_EXEC) {