From 52713c71b48a44136c06f6089cc90b089fc9f53f Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 15 Mar 2011 16:41:47 +0100 Subject: [PATCH] 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-format-patch failed