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

Commit d4f60baf authored by Adrian Bunk's avatar Adrian Bunk Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (4991): Cafe_ccic.c: fix NULL dereference



We shouldn't dereference "cam" when we already know it's NULL.
Spotted by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent d82d418a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2166,7 +2166,7 @@ static void cafe_pci_remove(struct pci_dev *pdev)
	struct cafe_camera *cam = cafe_find_by_pdev(pdev);

	if (cam == NULL) {
		cam_warn(cam, "pci_remove on unknown pdev %p\n", pdev);
		printk(KERN_WARNING "pci_remove on unknown pdev %p\n", pdev);
		return;
	}
	mutex_lock(&cam->s_mutex);