diff options
| author | 2003-10-12 23:44:39 +0000 | |
|---|---|---|
| committer | 2003-10-12 23:44:39 +0000 | |
| commit | ef2f49f2601511d153458090ff2b3d0c1facba60 (patch) | |
| tree | 6700984f1766483f93b57dcb1e6fcd6eff64bbe6 /sys/compat/linux/linux_ipc.c | |
| parent | buf oflow, fixed badly in freebsd by tjr, i changed it to give a nice (diff) | |
| download | wireguard-openbsd-ef2f49f2601511d153458090ff2b3d0c1facba60.tar.xz wireguard-openbsd-ef2f49f2601511d153458090ff2b3d0c1facba60.zip | |
Linux shmat allows lookup of segments that are marked as removed so
our Linux compat should too. From marius aamodt eriksen
Diffstat (limited to 'sys/compat/linux/linux_ipc.c')
| -rw-r--r-- | sys/compat/linux/linux_ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index 67bf034dd4c..03be16c7dbd 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_ipc.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */ +/* $OpenBSD: linux_ipc.c,v 1.9 2003/10/12 23:44:39 millert Exp $ */ /* $NetBSD: linux_ipc.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */ /* @@ -538,7 +538,7 @@ linux_shmat(p, v, retval) SCARG(&bsa, shmaddr) = SCARG(uap, ptr); SCARG(&bsa, shmflg) = SCARG(uap, a2); - if ((error = sys_shmat(p, &bsa, retval))) + if ((error = sys_shmat1(p, &bsa, retval, 1))) return error; if ((error = copyout(&retval[0], (caddr_t) SCARG(uap, a3), |
