提交 cd4765ef 编写于 作者: M Mauro Carvalho Chehab

V4L/DVB (6265): Prevent for calling mmap_free without an allocated buffer

Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981Reviewed-by: NRicardo Cerqueira <v4l@cerqueira.org>
上级 3bef5e4a
......@@ -880,6 +880,9 @@ int videobuf_mmap_free(struct videobuf_queue *q)
int i;
int rc;
if (!q)
return 0;
MAGIC_CHECK(q->int_ops->magic,MAGIC_QTYPE_OPS);
rc = CALL(q,mmap_free,q);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册