提交 49c6b46a 编写于 作者: J Jelle Foks 提交者: Mauro Carvalho Chehab

V4L/DVB (4838): Fix cx88-blackbird null pointer

Allows 'debug=1' for cx88-blackbird module (dev needs to be valid for
dprintk). Fixes a null-pointer dereference when using debug=1.
Signed-off-by: NJelle Foks <jelle@foks.8m.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 1f683cd8
......@@ -942,9 +942,10 @@ static int mpeg_open(struct inode *inode, struct file *file)
struct cx8802_driver *drv = NULL;
int err;
dev = cx8802_get_device(inode);
dprintk( 1, "%s\n", __FUNCTION__);
dev = cx8802_get_device(inode);
if (dev == NULL)
return -ENODEV;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册