Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -744,11 +744,11 @@ dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp)
					if (dsp->pcm_slot_rx >= 0 &&
					    dsp->pcm_slot_rx <
					    sizeof(freeslots))
						freeslots[dsp->pcm_slot_tx] = 0;
						freeslots[dsp->pcm_slot_rx] = 0;
					if (dsp->pcm_slot_tx >= 0 &&
					    dsp->pcm_slot_tx <
					    sizeof(freeslots))
						freeslots[dsp->pcm_slot_rx] = 0;
						freeslots[dsp->pcm_slot_tx] = 0;
				}
			}
			i = 0;
@@ -836,11 +836,11 @@ dsp_cmx_hardware(struct dsp_conf *conf, struct dsp *dsp)
					if (dsp->pcm_slot_rx >= 0 &&
					    dsp->pcm_slot_rx <
					    sizeof(freeslots))
						freeslots[dsp->pcm_slot_tx] = 0;
						freeslots[dsp->pcm_slot_rx] = 0;
					if (dsp->pcm_slot_tx >= 0 &&
					    dsp->pcm_slot_tx <
					    sizeof(freeslots))
						freeslots[dsp->pcm_slot_rx] = 0;
						freeslots[dsp->pcm_slot_tx] = 0;
				}
			}
			i1 = 0;