Commit a30f1701 authored by Oliver Neukum's avatar Oliver Neukum Committed by Paul Gortmaker
Browse files

USB: cdc-wdm: fix buffer overflow



commit c0f5ecee 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: default avatarOliver Neukum <oliver@neukum.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
[PG: minor adjustment since RESET from 88044202 isn't in .34]
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent d04eaae1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment