Commit 83a8a55b authored by Andreas Eversberg's avatar Andreas Eversberg Committed by Karsten Keil

mISDN: Fixed more indexing bugs

Fix more indexing bugs  when checking free timeslots.
Signed-off-by: default avatarAndreas Eversberg <andreas@eversberg.eu>
Signed-off-by: default avatarKarsten Keil <kkeil@suse.de>
parent 0aafe75d
...@@ -744,11 +744,11 @@ dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp) ...@@ -744,11 +744,11 @@ dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp)
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 @@ dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp) ...@@ -836,11 +836,11 @@ dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment