git: de1382dc4b5b - stable/13 - linux(4): Eliminate bogus options value check validation.

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Fri, 17 Jun 2022 19:38:44 UTC
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=de1382dc4b5bbcaf6ecb51706d1f4792c700c20d

commit de1382dc4b5bbcaf6ecb51706d1f4792c700c20d
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-03-31 17:41:02 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:33:44 +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
    
    (cherry picked from commit 2fd480b3182f52ebf23abdcacab04520224e90b7)
---
 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 45e395acd6aa..ffebf9cd2e20 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: