diff options
author | Mike Isely <isely@pobox.com> | 2007-09-08 20:11:46 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-09-08 20:11:46 -0500 |
commit | a25765700945a8212801a2056882447095c31812 (patch) | |
tree | 728b172b761696e2464501ded27826eded0231d4 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |
parent | d403b3a7451ec9a5091a516bfcc6e37e890dc4ce (diff) | |
download | mediapointer-dvb-s2-a25765700945a8212801a2056882447095c31812.tar.gz mediapointer-dvb-s2-a25765700945a8212801a2056882447095c31812.tar.bz2 |
pvrusb2: Fix a potential oops in an error leg cleanup
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 205eab581..32e09df87 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -2199,6 +2199,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); |