Commit 18b56625 authored by Matthias Fend's avatar Matthias Fend Committed by Greg Kroah-Hartman
Browse files

USB: ffs-test: fix length argument of out function call



commit eb9c5836 upstream.

The out functions should only handle actual available data instead of the complete buffer.
Otherwise for example the ep0_consume function will report ghost events since it tries to decode
the complete buffer - which may contain partly invalid data.

Signed-off-by: default avatarMatthias Fend <matthias.fend@wolfvision.net>
Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f75ce2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment