Skip to content

Commit

Permalink
[PATCH] USB: vicam.c: fix a NULL pointer dereference
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 6e0755a commit f88f829
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/media/vicam.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f88f829

Please sign in to comment.