diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-07-24 11:56:45 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 15:57:54 +0200 |
commit | 69b311a4dabc9163288be1fe993cb7db47541e67 (patch) | |
tree | 477e1867a5841fa45cc2d2696ab6a7a57b5815b1 /sound/pci/cs46xx | |
parent | 00283886fae4005feeb84bddda6cf5da5675be4d (diff) | |
download | kernel_samsung_tuna-69b311a4dabc9163288be1fe993cb7db47541e67.zip kernel_samsung_tuna-69b311a4dabc9163288be1fe993cb7db47541e67.tar.gz kernel_samsung_tuna-69b311a4dabc9163288be1fe993cb7db47541e67.tar.bz2 |
[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.c | 2 |
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 57e357d..eded4df 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, if (!pcm_channel->src_scb->ref_count) { cs46xx_dsp_remove_scb(chip,pcm_channel->src_scb); - snd_assert (pcm_channel->src_slot >= 0 && pcm_channel->src_slot <= DSP_MAX_SRC_NR, + snd_assert (pcm_channel->src_slot >= 0 && pcm_channel->src_slot < DSP_MAX_SRC_NR, return ); ins->src_scb_slots[pcm_channel->src_slot] = 0; |