]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: qcom: qmi_interface: Limit txn ids to U16_MAX
authorArun Kumar Neelakantam <aneela@codeaurora.org>
Wed, 3 Oct 2018 05:40:02 +0000 (11:10 +0530)
committerAndy Gross <andy.gross@linaro.org>
Wed, 14 Nov 2018 18:02:07 +0000 (10:02 -0800)
commitc4fe17e0e3a346cc855b7b41c00ff7b04c56d32b
tree0f0eea974b98395a412c3ab1a682e2127970e4c9
parente0f2cfeb59c81cbcfc7fbcb7ec0636020499813b
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: Arun Kumar Neelakantam <aneela@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/qmi_interface.c
include/linux/soc/qcom/qmi.h