USB: devio: fix issue with log flooding
authorOliver Neukum <oneukum@suse.de>
Fri, 1 Aug 2014 07:55:20 +0000 (09:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 23:01:46 +0000 (16:01 -0700)
commitd310d05f1225d1f6f2bf505255fdf593bfbb3051
tree561d579967a741e32fec5c65d7b1140c9a785903
parent43508be512661c905d0320ee73e0b65ef36d2459
USB: devio: fix issue with log flooding

usbfs allows user space to pass down an URB which sets URB_SHORT_NOT_OK
for output URBs. That causes usbcore to log messages without limit
for a nonsensical disallowed combination. The fix is to silently drop
the attribute in usbfs.
The problem is reported to exist since 3.14
https://www.virtualbox.org/ticket/13085

Signed-off-by: Oliver Neukum <oneukum@suse.de>
CC: stable@vger.kernel.org
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c