diff options
author | kib <kib@FreeBSD.org> | 2015-04-04 23:56:38 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-04-04 23:56:38 +0000 |
commit | 4f422b68f168533a170afc48010ed88dde7b97f3 (patch) | |
tree | 345ebf94391d0de360d78da4226405ae9910f651 | |
parent | 7d8a76a98f4edabb96f442184135c7b4adbe385b (diff) | |
download | FreeBSD-src-4f422b68f168533a170afc48010ed88dde7b97f3.zip FreeBSD-src-4f422b68f168533a170afc48010ed88dde7b97f3.tar.gz |
Restore proper error from oshmctl(2), used by COMPAT_43, when the
segment cannot be found. Broken by r280323.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
-rw-r--r-- | sys/kern/sysv_shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 8717904..274deda 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -965,7 +965,7 @@ oshmctl(struct thread *td, struct oshmctl_args *uap) shmseg = shm_find_segment(uap->shmid, true); if (shmseg == NULL) { SYSVSHM_UNLOCK(); - return (error); + return (EINVAL); } switch (uap->cmd) { case IPC_STAT: |