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:
Sreelakshmi Gownipalli 2016-04-19 13:16:15 -07:00 committed by Jeevan Shriram
parent 8cc9b35f9a
commit a0c23c20d1

View file

@ -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,