aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/media/vicam.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-03-10 17:25:06 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-20 17:50:02 -0500
commitf88f8295d8a9229fc8b647baf4f15959384d7bb7 (patch)
tree6d8ad61b935f9dd9d7ef0ce40898bd7df96476d0 /drivers/usb/media/vicam.c
parent6e0755a4b2a41a8cd5839db69532d07262294b41 (diff)
[PATCH] USB: vicam.c: fix a NULL pointer dereference
This patch fixes a NULL pointer dereference spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/media/vicam.c')
-rw-r--r--drivers/usb/media/vicam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/media/vicam.c b/drivers/usb/media/vicam.c
index 8cfc47b831fb..1d06e53ec7c5 100644
--- a/drivers/usb/media/vicam.c
+++ b/drivers/usb/media/vicam.c
@@ -764,6 +764,7 @@ vicam_open(struct inode *inode, struct file *file)
764 if (!cam) { 764 if (!cam) {
765 printk(KERN_ERR 765 printk(KERN_ERR
766 "vicam video_device improperly initialized"); 766 "vicam video_device improperly initialized");
767 return -EINVAL;
767 } 768 }
768 769
769 /* the videodev_lock held above us protects us from 770 /* the videodev_lock held above us protects us from