]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
mISDN: Fixed more indexing bugs
authorAndreas Eversberg <andreas@eversberg.eu>
Sat, 30 Aug 2008 04:50:34 +0000 (06:50 +0200)
committerKarsten Keil <kkeil@suse.de>
Fri, 9 Jan 2009 21:44:24 +0000 (22:44 +0100)
Fix more indexing bugs  when checking free timeslots.

Signed-off-by: Andreas Eversberg <andreas@eversberg.eu>
Signed-off-by: Karsten Keil <kkeil@suse.de>
drivers/isdn/mISDN/dsp_cmx.c

index b16f76c2d684d7c46709884d4f5c2f157f929f64..04dbb407f7a0e907f74f61b4e3b75972ad44cdf8 100644 (file)
@@ -744,11 +744,11 @@ conf_software:
                                        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 @@ conf_software:
                                        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;