diff options
author | Oliver Neukum <oneukum@suse.de> | 2013-03-12 13:52:42 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-12 23:33:05 (GMT) |
commit | c0f5ecee4e741667b2493c742b60b6218d40b3aa (patch) | |
tree | 64f1a695a53a28eaaebe90a0816746d28ab63511 /drivers/misc/phantom.c | |
parent | a57e82a18779ab8a5e5a1f5841cef937cf578913 (diff) | |
download | linux-fsl-qoriq-c0f5ecee4e741667b2493c742b60b6218d40b3aa.tar.xz |
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>
Diffstat (limited to 'drivers/misc/phantom.c')
0 files changed, 0 insertions, 0 deletions