patch-2.4.20 linux-2.4.20/arch/mips/kernel/ipc.c
Next file: linux-2.4.20/arch/mips/kernel/irixelf.c
Previous file: linux-2.4.20/arch/mips/kernel/i8259.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Thu Nov 28 15:53:10 2002
- Orig file:
linux-2.4.19/arch/mips/kernel/ipc.c
- Orig date:
Thu Feb 24 22:52:30 2000
diff -urN linux-2.4.19/arch/mips/kernel/ipc.c linux-2.4.20/arch/mips/kernel/ipc.c
@@ -45,7 +45,7 @@
}
case MSGSND:
- return sys_msgsnd (first, (struct msgbuf *) ptr,
+ return sys_msgsnd (first, (struct msgbuf *) ptr,
second, third);
case MSGRCV:
switch (version) {
@@ -53,9 +53,9 @@
struct ipc_kludge tmp;
if (!ptr)
return -EINVAL;
-
+
if (copy_from_user(&tmp,
- (struct ipc_kludge *) ptr,
+ (struct ipc_kludge *) ptr,
sizeof (tmp)))
return -EFAULT;
return sys_msgrcv (first, tmp.msgp, second,
@@ -85,7 +85,7 @@
return -EINVAL;
return sys_shmat (first, (char *) ptr, second, (ulong *) third);
}
- case SHMDT:
+ case SHMDT:
return sys_shmdt ((char *)ptr);
case SHMGET:
return sys_shmget (first, second, third);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)