Date: Thu, 31 Mar 2022 17:50:36 GMT From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2fd480b3182f - main - linux(4): Eliminate bogus options value check validation. Message-ID: <202203311750.22VHoahn038624@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=2fd480b3182f52ebf23abdcacab04520224e90b7 commit 2fd480b3182f52ebf23abdcacab04520224e90b7 Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-03-31 17:41:02 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-03-31 17:41:02 +0000 linux(4): Eliminate bogus options value check validation. The kernel do it for us. Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D31553 MFC after: 2 weeks --- sys/compat/linux/linux_misc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index b5e72989ac0a..0d7f9b156f9b 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1095,8 +1095,6 @@ linux_waitid(struct thread *td, struct linux_waitid_args *args) if (options & ~(WNOHANG | WNOWAIT | WEXITED | WUNTRACED | WCONTINUED)) return (EINVAL); - if (!(options & (WEXITED | WUNTRACED | WCONTINUED))) - return (EINVAL); switch (args->idtype) { case LINUX_P_ALL:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203311750.22VHoahn038624>