提交 83a8a55b 编写于 作者: A Andreas Eversberg 提交者: Karsten Keil

mISDN: Fixed more indexing bugs

Fix more indexing bugs  when checking free timeslots.
Signed-off-by: NAndreas Eversberg <andreas@eversberg.eu>
Signed-off-by: NKarsten Keil <kkeil@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册