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

Commit 75b714f8 authored by Karthikeyan Ramasubramanian's avatar Karthikeyan Ramasubramanian
Browse files

soc: qcom: glink_smd_xprt: Fix read operation in streaming channel



The SMD Transport plugin checks for the packet size, then requests for
an rx intent of that size and reads the available data. In the case of
streaming SMD channels, the available data may become greater than the
packet size. This causes the data read operation to overflow the
receive buffer.

Limit the data read to the size of the rx intent.

CRs-Fixed: 942285
Change-Id: Id5377a7ccf19af1fe4c84c0dd735a739d03c9746
Signed-off-by: default avatarKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
parent ec7db6c5
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