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 125cb368dfe5a8772a6a94933f425b898ebdf87d..3723d832879bc747204a1ffc44b54e65b246e610 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;
        }