commit | c0f5ecee4e741667b2493c742b60b6218d40b3aa | [log] [tgz] |
---|---|---|
author | Oliver Neukum <oneukum@suse.de> | Tue Mar 12 14:52:42 2013 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Mar 12 16:33:05 2013 -0700 |
tree | 64f1a695a53a28eaaebe90a0816746d28ab63511 | |
parent | a57e82a18779ab8a5e5a1f5841cef937cf578913 [diff] |
USB: cdc-wdm: fix buffer overflow 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 <oliver@neukum.org> CC: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>