summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-28 06:44:06 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-18 00:40:21 -0300
commit1f9305b7a56b1c7dd62add13e763b3fc537ae499 (patch)
tree4c70836bc992a72ddb0aea818263e74ae7bf3736 /drivers/staging
parentedecce0a31b4447ee75dd0df34c7c5fc90ba6f6b (diff)
downloadop-kernel-dev-1f9305b7a56b1c7dd62add13e763b3fc537ae499.zip
op-kernel-dev-1f9305b7a56b1c7dd62add13e763b3fc537ae499.tar.gz
V4L/DVB (12844): tm6000: avoid writing on a floating pointer
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/tm6000/tm6000-video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c
index 125cb36..3723d83 100644
--- a/drivers/staging/tm6000/tm6000-video.c
+++ b/drivers/staging/tm6000/tm6000-video.c
@@ -139,6 +139,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;
}
OpenPOWER on IntegriCloud