From: Oliver Neukum Date: Tue, 12 Mar 2013 13:52:42 +0000 (+0100) Subject: USB: cdc-wdm: fix buffer overflow X-Git-Tag: v3.2.41~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e535446a78958888b16db9d619d0f60c1950622;p=pandora-kernel.git USB: cdc-wdm: fix buffer overflow commit c0f5ecee4e741667b2493c742b60b6218d40b3aa upstream. The buffer for responses must not overflow. If this would happen, set a flag, drop the data and return an error after user space has read all remaining data. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed