Date: Tue, 7 Apr 2015 07:10:44 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r281195 - stable/10/sys/kern Message-ID: <201504070710.t377AikA051219@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504070710.t377AikA051219>