Author: kib
Date: Tue Apr 7 07:10:44 2015
New Revision: 281195
URL: https://svnweb.freebsd.org/changeset/base/281195
Log:
MFC r281094:
Restore proper error from oshmctl(2), broken by r280323.
Modified:
stable/10/sys/kern/sysv_shm.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/sysv_shm.c
==============================================================================
--- stable/10/sys/kern/sysv_shm.c Tue Apr 7 07:08:35 2015
(r281194)
+++ stable/10/sys/kern/sysv_shm.c Tue Apr 7 07:10:44 2015
(r281195)
@@ -971,7 +971,7 @@ oshmctl(struct thread *td, struct oshmct
shmseg = shm_find_segment(uap->shmid, true);
if (shmseg == NULL) {
SYSVSHM_UNLOCK();
- return (error);
+ return (EINVAL);
}
switch (uap->cmd) {
case IPC_STAT:
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"