Skip to content
Commit 9d02b426 authored by Michal Sojka's avatar Michal Sojka Committed by Greg Kroah-Hartman
Browse files

USB: Do not pass negative length to snoop_urb()



When `echo Y > /sys/module/usbcore/parameters/usbfs_snoop` and
usb_control_msg() returns error, a lot of kernel memory is dumped to dmesg
until unhandled kernel paging request occurs.

Signed-off-by: default avatarMichal Sojka <sojkam1@fel.cvut.cz>
Cc: stable@kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4bbba111
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment