Date: Sun, 2 Apr 2017 07:49:05 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316395 - head/sys/compat/linux Message-ID: <201704020749.v327n5Nr043293@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Sun Apr 2 07:49:05 2017 New Revision: 316395 URL: https://svnweb.freebsd.org/changeset/base/316395 Log: Remove excess tv_nsec test as this is done by linux_to_native_timespec(). MFC after: 1 week Modified: head/sys/compat/linux/linux_futex.c Modified: head/sys/compat/linux/linux_futex.c ============================================================================== --- head/sys/compat/linux/linux_futex.c Sun Apr 2 07:47:28 2017 (r316394) +++ head/sys/compat/linux/linux_futex.c Sun Apr 2 07:49:05 2017 (r316395) @@ -294,9 +294,6 @@ futex_copyin_timeout(int op, struct l_ti error = linux_to_native_timespec(ts, <s); if (error) return (error); - if (ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000) - return (EINVAL); - if (clockrt) { nanotime(&kts); timespecsub(ts, &kts);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704020749.v327n5Nr043293>