diag: Use correct index while accessing DCI channel
Use correct index value while accessing DCI channel status. Change-Id: I97456326a40c6d24c208307a9e8e6a55fc5b9d59 Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
This commit is contained in:
parent
8cc9b35f9a
commit
a0c23c20d1
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ static void dci_chk_handshake(unsigned long data)
|
|||
{
|
||||
int index = (int)data;
|
||||
|
||||
if (index < 0 || index > NUM_DCI_PROC)
|
||||
if (index < 0 || index >= NUM_DCI_PROC)
|
||||
return;
|
||||
|
||||
queue_work(driver->diag_dci_wq,
|
||||
|
|
Loading…
Add table
Reference in a new issue