USB: usbdevfs: restore warning for nonsensical flags
authorOliver Neukum <oneukum@suse.com>
Wed, 5 Sep 2018 10:07:03 +0000 (12:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:56 +0000 (17:00 -0700)
commitec6dc4b61c3312e6d2de4186ccca2bf1daa1d640
treebbdb6aaa17b3b3461fa582acf6bec4d312d80576
parent25a8d4825165174dfcc256cf92f7bf63c4a8812f
USB: usbdevfs: restore warning for nonsensical flags

commit 81e0403b26d94360abd1f6a57311337973bc82cd upstream.

If we filter flags before they reach the core we need to generate our
own warnings.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Fixes: 0cb54a3e47cb ("USB: debugging code shouldn't alter control flow")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c