mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-12-13 23:50:57 +00:00
mISDN: Fixed more indexing bugs
Fix more indexing bugs when checking free timeslots. Signed-off-by: Andreas Eversberg <andreas@eversberg.eu> Signed-off-by: Karsten Keil <kkeil@suse.de>
This commit is contained in:
parent
0aafe75d5c
commit
83a8a55b1d
@ -744,11 +744,11 @@ conf_software:
|
|||||||
if (dsp->pcm_slot_rx >= 0 &&
|
if (dsp->pcm_slot_rx >= 0 &&
|
||||||
dsp->pcm_slot_rx <
|
dsp->pcm_slot_rx <
|
||||||
sizeof(freeslots))
|
sizeof(freeslots))
|
||||||
freeslots[dsp->pcm_slot_tx] = 0;
|
freeslots[dsp->pcm_slot_rx] = 0;
|
||||||
if (dsp->pcm_slot_tx >= 0 &&
|
if (dsp->pcm_slot_tx >= 0 &&
|
||||||
dsp->pcm_slot_tx <
|
dsp->pcm_slot_tx <
|
||||||
sizeof(freeslots))
|
sizeof(freeslots))
|
||||||
freeslots[dsp->pcm_slot_rx] = 0;
|
freeslots[dsp->pcm_slot_tx] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
@ -836,11 +836,11 @@ conf_software:
|
|||||||
if (dsp->pcm_slot_rx >= 0 &&
|
if (dsp->pcm_slot_rx >= 0 &&
|
||||||
dsp->pcm_slot_rx <
|
dsp->pcm_slot_rx <
|
||||||
sizeof(freeslots))
|
sizeof(freeslots))
|
||||||
freeslots[dsp->pcm_slot_tx] = 0;
|
freeslots[dsp->pcm_slot_rx] = 0;
|
||||||
if (dsp->pcm_slot_tx >= 0 &&
|
if (dsp->pcm_slot_tx >= 0 &&
|
||||||
dsp->pcm_slot_tx <
|
dsp->pcm_slot_tx <
|
||||||
sizeof(freeslots))
|
sizeof(freeslots))
|
||||||
freeslots[dsp->pcm_slot_rx] = 0;
|
freeslots[dsp->pcm_slot_tx] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i1 = 0;
|
i1 = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user