patch-2.1.101 linux/arch/mips/kernel/ipc.c

Next file: linux/arch/mips/kernel/irix5sys.h
Previous file: linux/arch/mips/kernel/init_task.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/mips/kernel/ipc.c linux/arch/mips/kernel/ipc.c
@@ -101,7 +101,7 @@
 			}
 			case 1:	/* iBCS2 emulator entry point */
 				ret = -EINVAL;
-				if (get_fs() != get_ds())
+				if (!segment_eq(get_fs(), get_ds()))
 					goto out;
 				ret = sys_shmat (first, (char *) ptr, second, (ulong *) third);
 				goto out;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov