Skip to content

Commit

Permalink
V4L/DVB (3500): Ringbuffer: don't reset pointers to zero
Browse files Browse the repository at this point in the history
Oliver Endriss spotted, that resetting read and write pointers on
flush() requires additional locking and breaks the av7110 driver.
Therefore this patch partially reverts the previous patch titled "make
dvb_ringbuffer compatible to dmxdev_buffer".

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Andreas Oberritter authored and Linus Torvalds committed Mar 21, 2006
1 parent 1947884 commit 4304954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-core/dvb_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ ssize_t dvb_ringbuffer_avail(struct dvb_ringbuffer *rbuf)

void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf)
{
rbuf->pread = rbuf->pwrite = 0;
rbuf->pread = rbuf->pwrite;
rbuf->error = 0;
}

Expand Down

0 comments on commit 4304954

Please sign in to comment.