commit | 9d02b42614149ebccf12c9c580601ed01bd83070 | [log] [tgz] |
---|---|---|
author | Michal Sojka <sojkam1@fel.cvut.cz> | Tue Mar 15 16:41:47 2011 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Wed Mar 23 13:14:16 2011 -0700 |
tree | 010f30f5acba34e61aeff61e47aeaad8306ce1ff | |
parent | 4bbba111d94781d34081c37856bbc5eb33f6c72a [diff] |
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: Michal Sojka <sojkam1@fel.cvut.cz> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>