Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=69b311a4dabc9163288be1fe993cb7db47541e67
Commit:     69b311a4dabc9163288be1fe993cb7db47541e67
Parent:     00283886fae4005feeb84bddda6cf5da5675be4d
Author:     Adrian Bunk <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 24 11:56:45 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:57:54 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to