svn commit: r281195 - stable/10/sys/kern

Konstantin Belousov kib at FreeBSD.org
Tue Apr 7 07:10:45 UTC 2015


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:


More information about the svn-src-all mailing list