summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-28 07:44:06 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-28 07:44:06 -0200
commite2a21bfe5cfc11c33d12a9c17604c44cfa3a8cde (patch)
treee8189f7aa03845d5191ca5aaa8b0fae01c2b70ba /linux
parentbb83e9e161e038239d0e9688fa9d4ba112d200f4 (diff)
downloadmediapointer-dvb-s2-e2a21bfe5cfc11c33d12a9c17604c44cfa3a8cde.tar.gz
mediapointer-dvb-s2-e2a21bfe5cfc11c33d12a9c17604c44cfa3a8cde.tar.bz2
tm6000: avoid writing on a floating pointer
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/staging/tm6000/tm6000-video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/staging/tm6000/tm6000-video.c b/linux/drivers/staging/tm6000/tm6000-video.c
index 3859e5d42..06a2ccc22 100644
--- a/linux/drivers/staging/tm6000/tm6000-video.c
+++ b/linux/drivers/staging/tm6000/tm6000-video.c
@@ -146,6 +146,7 @@ static inline void get_next_buf(struct tm6000_dmaqueue *dma_q,
if (list_empty(&dma_q->active)) {
dprintk(dev, V4L2_DEBUG_QUEUE, "No active queue to serve\n");
+ *buf = NULL;
return;
}