Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 521fafac authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

USB: f_ccid: Fix the return value of the bulk read



The read should return the number bytes copied to the user space
buffer.  The current code is returning the value passed to the
read() system call.

We exactly know how many bytes host will send over the bulk out
endpoint before issuing the read.  Hence there are no issues
with the current code.  This issue is found during a unit test
which sends random number of bytes over the bulk out endpoint.

Change-Id: I52d28d53f0550f6937ae765f981168e31d6e5694
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 8c57f77a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment