sound: OSS: dmabuf: too many loops

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:17 pm

Gitweb:     http://git.kernel.org/linus/1afa6e2e1d26d0b9d96785ee1823bf11c4c5f202
Commit:     1afa6e2e1d26d0b9d96785ee1823bf11c4c5f202
Parent:     8e4921515c1a379539607eb443d51c30f4f7f338
Author:     Roel Kluin <roel.kluin@gmail.com>
AuthorDate: Wed Feb 11 13:53:26 2009 +0100
Committer:  Takashi Iwai <tiwai@suse.de>
CommitDate: Wed Feb 11 14:12:04 2009 +0100

    sound: OSS: dmabuf: too many loops
    
    loop adev->dmap_out->nbufs times
    
    Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/oss/dmabuf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/oss/dmabuf.c b/sound/oss/dmabuf.c
index 1e90d76..1bfcf7e 100644
--- a/sound/oss/dmabuf.c
+++ b/sound/oss/dmabuf.c
@@ -439,7 +439,7 @@ int DMAbuf_sync(int dev)
 			DMAbuf_launch_output(dev, dmap);
 		adev->dmap_out->flags |= DMA_SYNCING;
 		adev->dmap_out->underrun_count = 0;
-		while (!signal_pending(current) && n++ <= adev->dmap_out->nbufs && 
+		while (!signal_pending(current) && n++ < adev->dmap_out->nbufs &&
 		       adev->dmap_out->qlen && adev->dmap_out->underrun_count == 0) {
 			long t = dmabuf_timeout(dmap);
 			spin_unlock_irqrestore(&dmap->lock,flags);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sound: OSS: dmabuf: too many loops, Linux Kernel Mailing ..., (Thu Mar 26, 12:17 pm)