patch-2.4.2 linux/ipc/msg.c
Next file: linux/ipc/sem.c
Previous file: linux/include/pcmcia/ss.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Feb 19 10:18:18 2001
- Orig file:
v2.4.1/linux/ipc/msg.c
- Orig date:
Tue Jan 11 21:49:26 2000
diff -u --recursive --new-file v2.4.1/linux/ipc/msg.c linux/ipc/msg.c
@@ -16,7 +16,7 @@
*/
#include <linux/config.h>
-#include <linux/malloc.h>
+#include <linux/slab.h>
#include <linux/msg.h>
#include <linux/spinlock.h>
#include <linux/init.h>
@@ -473,7 +473,7 @@
int success_return;
if (!buf)
return -EFAULT;
- if(cmd == MSG_STAT && msqid > msg_ids.size)
+ if(cmd == MSG_STAT && msqid >= msg_ids.size)
return -EINVAL;
memset(&tbuf,0,sizeof(tbuf));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)