Skip to content
Commit c4fe17e0 authored by Arun Kumar Neelakantam's avatar Arun Kumar Neelakantam Committed by Andy Gross
Browse files

soc: qcom: qmi_interface: Limit txn ids to U16_MAX



Txn IDs created up to INT_MAX cause overflow while storing
the IDs in u16 type supported by QMI header.

Limit the txn IDs max value to U16_MAX to avoid overflow.

Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
parent e0f2cfeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment