V4L/DVB (12844): tm6000: avoid writing on a floating pointer
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 28 Nov 2008 09:44:06 +0000 (06:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:40:21 +0000 (00:40 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-video.c

index 125cb36..3723d83 100644 (file)
@@ -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;
        }