The branch main has been updated by dchagin:

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

commit 2fd480b3182f52ebf23abdcacab04520224e90b7
Author:     Dmitry Chagin <dcha...@freebsd.org>
AuthorDate: 2022-03-31 17:41:02 +0000
Commit:     Dmitry Chagin <dcha...@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:

Reply via email to