summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/dvb/dvb-core/dmxdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dmxdev.c b/linux/drivers/media/dvb/dvb-core/dmxdev.c
index 4fd88123b..85681063a 100644
--- a/linux/drivers/media/dvb/dvb-core/dmxdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c
@@ -109,7 +109,8 @@ dvb_dmxdev_buffer_read(dmxdev_buffer_t *src, int non_blocking,
return 0;
if ((error=src->error)) {
- src->error=0;
+ src->pwrite=src->pread;
+ src->error=0;
return error;
}
@@ -126,6 +127,7 @@ dvb_dmxdev_buffer_read(dmxdev_buffer_t *src, int non_blocking,
return count-todo;
if ((error=src->error)) {
+ src->pwrite=src->pread;
src->error=0;
return error;
}