OSDN Git Service

soc: qcom: Validate read and write index before calculating ptr
authorDeepak Kumar Singh <deesin@codeaurora.org>
Mon, 4 Feb 2019 12:46:49 +0000 (18:16 +0530)
committerDeepak Kumar Singh <deesin@codeaurora.org>
Tue, 5 Feb 2019 06:27:20 +0000 (11:57 +0530)
commitfa569dd95de4d21973e6906042d5a3fb5f99bea1
tree6d30e41f7c296950ddfb5ba7276e612973376528
parent082fa7fad60fc0bc2ef8bd9cbe62fae321950531
soc: qcom: Validate read and write index before calculating ptr

Currently we are not validating read and write index of
tx and rx fifo's before calculating ptr, this can lead to
out-of-bound access. The patch adds proper check for the same.

CR-Fixed: 2355425
Change-Id: I7b158e94ae743a90ac364783fe31914ca0fa582b
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
drivers/soc/qcom/glink_smem_native_xprt.c