From: Michal Sojka Date: Tue, 15 Mar 2011 15:41:47 +0000 (+0100) Subject: USB: Do not pass negative length to snoop_urb() X-Git-Tag: v2.6.37.6~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52713c71b48a44136c06f6089cc90b089fc9f53f;p=pandora-kernel.git USB: Do not pass negative length to snoop_urb() commit 9d02b42614149ebccf12c9c580601ed01bd83070 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed