Skip to content

Commit

Permalink
V4L/DVB (6328): ivtv: fix NULL dereference
Browse files Browse the repository at this point in the history
We shouldn't dereference "itv" when we know it's NULL...

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Adrian Bunk authored and Mauro Carvalho Chehab committed Oct 22, 2007
1 parent 1419683 commit 7e7f05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/ivtv/ivtv-fileops.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ int ivtv_v4l2_open(struct inode *inode, struct file *filp)
if (itv == NULL) {
/* Couldn't find a device registered
on that minor, shouldn't happen! */
IVTV_WARN("No ivtv device found on minor %d\n", minor);
printk(KERN_WARNING "No ivtv device found on minor %d\n", minor);
return -ENXIO;
}

Expand Down

0 comments on commit 7e7f05c

Please sign in to comment.