Browse Source

V4L/DVB (12844): tm6000: avoid writing on a floating pointer

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab 16 years ago
parent
commit
1f9305b7a5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/staging/tm6000/tm6000-video.c

+ 1 - 0
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;
 	}