diff options
| author | Oliver Neukum <[email protected]> | 2018-09-05 10:07:02 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-20 10:48:39 +0000 |
| commit | 7a68d9fb851012829c29e770621905529bd9490b (patch) | |
| tree | d46548b2c14c362c18dd6a0bafb6363553ff565d /drivers/net/xen-netback/interface.c | |
| parent | Revert "usb: cdc-wdm: Fix a sleep-in-atomic-context bug in service_outstandin... (diff) | |
| download | kernel-7a68d9fb851012829c29e770621905529bd9490b.tar.gz kernel-7a68d9fb851012829c29e770621905529bd9490b.zip | |
USB: usbdevfs: sanitize flags more
Requesting a ZERO_PACKET or not is sensible only for output.
In the input direction the device decides.
Likewise accepting short packets makes sense only for input.
This allows operation with panic_on_warn without opening up
a local DOS.
Signed-off-by: Oliver Neukum <[email protected]>
Reported-by: [email protected]
Fixes: 0cb54a3e47cb ("USB: debugging code shouldn't alter control flow")
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
