svn commit: r247231 - user/dchagin/lemul/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sun Feb 24 18:33:13 UTC 2013
Author: dchagin
Date: Sun Feb 24 18:33:13 2013
New Revision: 247231
URL: http://svnweb.freebsd.org/changeset/base/247231
Log:
sched_rr_get_interval() returns EINVAL in case when the invalid pid
specified. This silence the ltp tests.
Modified:
user/dchagin/lemul/sys/compat/linux/linux_misc.c
Modified: user/dchagin/lemul/sys/compat/linux/linux_misc.c
==============================================================================
--- user/dchagin/lemul/sys/compat/linux/linux_misc.c Sun Feb 24 18:26:17 2013 (r247230)
+++ user/dchagin/lemul/sys/compat/linux/linux_misc.c Sun Feb 24 18:33:13 2013 (r247231)
@@ -1944,6 +1944,9 @@ linux_sched_rr_get_interval(struct threa
struct thread *tdt;
int error;
+ if (uap->pid < 0)
+ return (EINVAL);
+
tdt = linux_tdfind(td, uap->pid, -1);
if (tdt == NULL)
return (ESRCH);
More information about the svn-src-user
mailing list