diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-03-10 23:25:06 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 23:50:02 +0100 |
commit | f88f8295d8a9229fc8b647baf4f15959384d7bb7 (patch) | |
tree | 6d8ad61b935f9dd9d7ef0ce40898bd7df96476d0 /drivers/usb | |
parent | [PATCH] USB: ZC0301 driver bugfix (diff) | |
download | linux-f88f8295d8a9229fc8b647baf4f15959384d7bb7.tar.xz linux-f88f8295d8a9229fc8b647baf4f15959384d7bb7.zip |
[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')
-rw-r--r-- | drivers/usb/media/vicam.c | 1 |
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) if (!cam) { printk(KERN_ERR "vicam video_device improperly initialized"); + return -EINVAL; } /* the videodev_lock held above us protects us from |