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

Skip to content
Commit 413db77d authored by Zaheerulla Meer's avatar Zaheerulla Meer
Browse files

msm: smd_pkt: Validate the size of SMD packet on read



In a scenario where the SMD packet size is invalid(> 0x7fffffff),
when smd_pkt reads this packet the size gets rounded off to a
negative number. This causes smd_pkt to wait till entire packet is read
rather than returning -ETOOSMALL.

Validate the packet size and return error in case the size if a negative
number.

CRs-Fixed: 579605
Change-Id: I163361c86f9de4c61dfc6bb8b2ce3f918e433302
Signed-off-by: default avatarZaheerulla Meer <zmeer@codeaurora.org>
parent 61ead888
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