diff options
author | Andy Walls <awalls@radix.net> | 2008-08-17 22:13:31 -0400 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2008-08-17 22:13:31 -0400 |
commit | 995c07b049f1633deb6e269cc0e7978b8c0dff4e (patch) | |
tree | 4a388c8a36018c5f75e178846b7960f36b2a7c72 /linux/drivers/media/video/cx18/cx18-irq.c | |
parent | a499d8eb7179d0990c06b89c3362af960c7d9eef (diff) | |
download | mediapointer-dvb-s2-995c07b049f1633deb6e269cc0e7978b8c0dff4e.tar.gz mediapointer-dvb-s2-995c07b049f1633deb6e269cc0e7978b8c0dff4e.tar.bz2 |
cx18: Add missing lock for when the irq handler manipulates the queues
From: Andy Walls <awalls@radix.net>
cx18: Add missing lock for when the irq handler manipulates the queues. This
was a potential source of stream queue corruption. Also changed the name of
cx18_queue_find_buf() to cx18_queue_get_buf_irq().
Priority: high
Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-irq.c')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-irq.c b/linux/drivers/media/video/cx18/cx18-irq.c index 654664783..b9cf609ee 100644 --- a/linux/drivers/media/video/cx18/cx18-irq.c +++ b/linux/drivers/media/video/cx18/cx18-irq.c @@ -61,7 +61,7 @@ static void epu_dma_done(struct cx18 *cx, struct cx18_mailbox *mb) CX18_WARN("Ack struct = %d for %s\n", mb->args[2], s->name); id = read_enc(off); - buf = cx18_queue_find_buf(s, id, read_enc(off + 4)); + buf = cx18_queue_get_buf_irq(s, id, read_enc(off + 4)); CX18_DEBUG_HI_DMA("DMA DONE for %s (buffer %d)\n", s->name, id); if (buf) { cx18_buf_sync_for_cpu(s, buf); |