aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/cs46xx
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-07-24 05:56:45 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:57:54 -0400
commit69b311a4dabc9163288be1fe993cb7db47541e67 (patch)
tree477e1867a5841fa45cc2d2696ab6a7a57b5815b1 /sound/pci/cs46xx
parent00283886fae4005feeb84bddda6cf5da5675be4d (diff)
[ALSA] sound/pci/cs46xx/: fix an off-by-one
This patch fixes an off-by-one in a snd_assert() spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r--sound/pci/cs46xx/dsp_spos_scb_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/cs46xx/dsp_spos_scb_lib.c b/sound/pci/cs46xx/dsp_spos_scb_lib.c
index 57e357de1500..eded4dfeba12 100644
--- a/sound/pci/cs46xx/dsp_spos_scb_lib.c
+++ b/sound/pci/cs46xx/dsp_spos_scb_lib.c
@@ -1480,7 +1480,7 @@ void cs46xx_dsp_destroy_pcm_channel (struct snd_cs46xx * chip,
1480 if (!pcm_channel->src_scb->ref_count) { 1480 if (!pcm_channel->src_scb->ref_count) {
1481 cs46xx_dsp_remove_scb(chip,pcm_channel->src_scb); 1481 cs46xx_dsp_remove_scb(chip,pcm_channel->src_scb);
1482 1482
1483 snd_assert (pcm_channel->src_slot >= 0 && pcm_channel->src_slot <= DSP_MAX_SRC_NR, 1483 snd_assert (pcm_channel->src_slot >= 0 && pcm_channel->src_slot < DSP_MAX_SRC_NR,
1484 return ); 1484 return );
1485 1485
1486 ins->src_scb_slots[pcm_channel->src_slot] = 0; 1486 ins->src_scb_slots[pcm_channel->src_slot] = 0;