[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>
This commit is contained in:
Adrian Bunk 2006-03-10 23:25:06 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 6e0755a4b2
Коммит f88f8295d8
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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