summaryrefslogtreecommitdiff
path: root/drivers/power/jz4740-battery.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2013-03-12 13:52:42 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-12 23:33:05 (GMT)
commitc0f5ecee4e741667b2493c742b60b6218d40b3aa (patch)
tree64f1a695a53a28eaaebe90a0816746d28ab63511 /drivers/power/jz4740-battery.c
parenta57e82a18779ab8a5e5a1f5841cef937cf578913 (diff)
downloadlinux-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/power/jz4740-battery.c')
0 files changed, 0 insertions, 0 deletions