patch-1.3.4 linux/ipc/msg.c

Next file: linux/ipc/shm.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/ipc/msg.c linux/ipc/msg.c
@@ -51,7 +51,7 @@
 	err = verify_area (VERIFY_READ, msgp->mtext, msgsz);
 	if (err) 
 		return err;
-	if ((mtype = get_fs_long (&msgp->mtype)) < 1)
+	if ((mtype = get_user (&msgp->mtype)) < 1)
 		return -EINVAL;
 	id = (unsigned int) msqid % MSGMNI;
 	msq = msgque [id];
@@ -192,7 +192,7 @@
 			msq->msg_cbytes -= nmsg->msg_ts;
 			if (msq->wwait)
 				wake_up (&msq->wwait);
-			put_fs_long (nmsg->msg_type, &msgp->mtype);
+			put_user (nmsg->msg_type, &msgp->mtype);
 			memcpy_tofs (msgp->mtext, nmsg->msg_spot, msgsz);
 			kfree(nmsg);
 			return msgsz;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this