summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-09-09 03:11:46 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-10 03:14:30 +0200
commit401c27ce96382b3bdbc7a9c7e7303fd1b3af9ef0 (patch)
tree1c65843922a033827ec3598a783204f0fd8d71c7 /drivers/media/video/pvrusb2
parentV4L/DVB (6205): pvrusb2: Fix oops in error leg cleanup (diff)
downloadlinux-401c27ce96382b3bdbc7a9c7e7303fd1b3af9ef0.tar.xz
linux-401c27ce96382b3bdbc7a9c7e7303fd1b3af9ef0.zip
V4L/DVB (6207): pvrusb2: Fix a potential oops in an error leg cleanup
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 2d5be5cfbccf..5d9045268cf5 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -2172,6 +2172,7 @@ static void pvr2_hdw_remove_usb_stuff(struct pvr2_hdw *hdw)
/* Destroy hardware interaction structure */
void pvr2_hdw_destroy(struct pvr2_hdw *hdw)
{
+ if (!hdw) return;
pvr2_trace(PVR2_TRACE_INIT,"pvr2_hdw_destroy: hdw=%p",hdw);
if (hdw->fw_buffer) {
kfree(hdw->fw_buffer);