projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbe880b
)
[media] Prevent null pointer derefernce of pdev
author
Huzaifa Sidhpurwala
<huzaifas@redhat.com>
Mon, 9 May 2011 10:32:24 +0000
(07:32 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 20 May 2011 22:55:57 +0000
(19:55 -0300)
Make sure pdev is not dereferenced when it is null
Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-if.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/pwc/pwc-if.c
b/drivers/media/video/pwc/pwc-if.c
index
780af5f
..
356cd42
100644
(file)
--- a/
drivers/media/video/pwc/pwc-if.c
+++ b/
drivers/media/video/pwc/pwc-if.c
@@
-1850,7
+1850,6
@@
static void usb_pwc_disconnect(struct usb_interface *intf)
} else {
/* Device is closed, so we can safely unregister it */
PWC_DEBUG_PROBE("Unregistering video device in disconnect().\n");
- pwc_cleanup(pdev);
disconnect_out:
/* search device_hint[] table if we occupy a slot, by any chance */
@@
-1860,6
+1859,7
@@
disconnect_out:
}
mutex_unlock(&pdev->modlock);
+ pwc_cleanup(pdev);
}