diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-28 06:44:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-18 00:40:21 -0300 |
commit | 1f9305b7a56b1c7dd62add13e763b3fc537ae499 (patch) | |
tree | 4c70836bc992a72ddb0aea818263e74ae7bf3736 /drivers/staging/tm6000/tm6000-video.c | |
parent | edecce0a31b4447ee75dd0df34c7c5fc90ba6f6b (diff) |
V4L/DVB (12844): tm6000: avoid writing on a floating pointer
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/tm6000/tm6000-video.c')
-rw-r--r-- | drivers/staging/tm6000/tm6000-video.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |