ChangeSet 1.2181.25.11, 2005/03/22 09:01:11+01:00, [EMAIL PROTECTED]
[ALSA] Fix Oops with timer notifying
Timer Midlevel
Fixed Oops with timer notifying after TIMER_TREAD ioctl.
Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
timer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -Nru a/sound/core/timer.c b/sound/core/timer.c
--- a/sound/core/timer.c 2005-03-30 16:11:21 -08:00
+++ b/sound/core/timer.c 2005-03-30 16:11:21 -08:00
@@ -1117,7 +1117,8 @@
if (tu->qused >= tu->queue_size) {
tu->overrun++;
} else {
- memcpy(&tu->queue[tu->qtail++], tread, sizeof(*tread));
+ memcpy(&tu->tqueue[tu->qtail++], tread, sizeof(*tread));
+ tu->qtail %= tu->queue_size;
tu->qused++;
}
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html