msm: ais: sensor: Fix out of bound read for region params
The region index is not validated against the region size.
This causes out-of-bound read on the KASAN kernel. Hence
adding restriction that region index is smaller than region size.
Change-Id: I3ebccee89f6e48a84389eb3b9055bc6e09e0310b
Signed-off-by:
Rahul Sharma <sharah@codeaurora.org>
Loading
Please register or sign in to comment