Skip to content

Commit

Permalink
V4L/DVB (4838): Fix cx88-blackbird null pointer
Browse files Browse the repository at this point in the history
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: Jelle Foks <jelle@foks.8m.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Jelle Foks authored and Mauro Carvalho Chehab committed Dec 10, 2006
1 parent 1f683cd commit 49c6b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/cx88/cx88-blackbird.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 49c6b46

Please sign in to comment.