From: Greg KH Date: Mon, 15 Feb 2010 17:37:46 +0000 (-0800) Subject: USB: usbfs: only copy the actual data received X-Git-Tag: v2.6.33~36^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a4683ca054ed9917dfc9e3ff0f7ecf74ad90d6;p=pandora-kernel.git USB: usbfs: only copy the actual data received We need to only copy the data received by the device to userspace, not the whole kernel buffer, which can contain "stale" data. Thanks to Marcus Meissner for pointing this out and testing the fix. Reported-by: Marcus Meissner Tested-by: Marcus Meissner Cc: Alan Stern Cc: Linus Torvalds Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed