summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-14 19:51:37 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-14 19:51:37 +0200
commit6945de76e40b14657304088ee49c320b293478fe (patch)
treebe17102493f76f0b37031eb73432e16b13f3809d /linux/drivers/media/video/ivtv
parente8e18693d65f6c6493b168829e66d1ca22986e6a (diff)
downloadmediapointer-dvb-s2-6945de76e40b14657304088ee49c320b293478fe.tar.gz
mediapointer-dvb-s2-6945de76e40b14657304088ee49c320b293478fe.tar.bz2
ivtv: fix NULL dereference
From: Adrian Bunk <bunk@kernel.org> 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>
Diffstat (limited to 'linux/drivers/media/video/ivtv')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-fileops.c b/linux/drivers/media/video/ivtv/ivtv-fileops.c
index da50fa4a7..0e0605cc0 100644
--- a/linux/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/linux/drivers/media/video/ivtv/ivtv-fileops.c
@@ -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;
}