Android 11.0.0 Release 0.8 (RP1A.201005.004,blueline/crosshatch)
msm: adsprpc: Fix array index underflow problem

Add check to restrict index underflow.This is to avoid
that it does not access invalid index.

Bug: 160605900
Change-Id: Ib971033c5820ca4dab38ace3b106c7b1b42529e4
Acked-by: Gururaj Chalger <gchalger@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
(cherry picked from commit 6108689d648c1130eed223d1059312a8e0602741)
1 file changed