From: Mauro Carvalho Chehab Date: Fri, 28 Nov 2008 09:44:06 +0000 (-0300) Subject: V4L/DVB (12844): tm6000: avoid writing on a floating pointer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1f9305b7a56b1c7dd62add13e763b3fc537ae499;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB (12844): tm6000: avoid writing on a floating pointer Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 125cb368dfe5..3723d832879b 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; }