projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d82d418
)
V4L/DVB (4991): Cafe_ccic.c: fix NULL dereference
author
Adrian Bunk
<bunk@stusta.de>
Wed, 20 Dec 2006 12:34:32 +0000
(09:34 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Wed, 27 Dec 2006 16:19:56 +0000
(14:19 -0200)
We shouldn't dereference "cam" when we already know it's NULL.
Spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cafe_ccic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/video/cafe_ccic.c
b/drivers/media/video/cafe_ccic.c
index e347c7ebc98415b6c8dc0d0d3f0492d0440740a4..3083c8075d13af459e033af0cbe6544340b08358 100644
(file)
--- a/
drivers/media/video/cafe_ccic.c
+++ b/
drivers/media/video/cafe_ccic.c
@@
-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);