Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f88f8295 authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: vicam.c: fix a NULL pointer dereference



This patch fixes a NULL pointer dereference spotted by the Coverity
checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6e0755a4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -764,6 +764,7 @@ vicam_open(struct inode *inode, struct file *file)
	if (!cam) {
	if (!cam) {
		printk(KERN_ERR
		printk(KERN_ERR
		       "vicam video_device improperly initialized");
		       "vicam video_device improperly initialized");
		return -EINVAL;
	}
	}


	/* the videodev_lock held above us protects us from
	/* the videodev_lock held above us protects us from