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.39-rc1~85^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d02b42614149ebccf12c9c580601ed01bd83070;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed