Skip to contentSkip to conversation

Fix msgctl

parisc-linux Matthew Wilcox 1 participant 1 message Jun 11, 2001 Kbuild

lore
Share & tools
lore
#0 lore raw

The switch statement fails to match any cases when IPC_64 is set, so we must clear it. This fixes the problem fakeroot was having, as it could allocate new sysv msg queues, but never free them, and we're limited to 16 queues.

Index: Makefile
===================================================================
RCS file: /home/cvs/parisc/linux/Makefile,v
retrieving revision 1.50

Makefile +1 -1
diff -u -p -r1.50 Makefile
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 4
 SUBLEVEL = 0
-EXTRAVERSION = -pa17
+EXTRAVERSION = -pa18
 
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 

Index: arch/parisc/kernel/sys_parisc32.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/sys_parisc32.c,v retrieving revision 1.16

sys_parisc32.c +1 -1
diff -u -p -r1.16 sys_parisc32.c
@@ -2681,7 +2681,7 @@ asmlinkage long sys32_msgctl (int msqid,
 {
 	int err = -EINVAL;
 
-	switch (cmd) {
+	switch (cmd &~ IPC_64) {
 
 	case IPC_INFO:
 	case MSG_INFO: