diff options
Diffstat (limited to 'drivers/media/pci/mantis/mantis_ca.c')
-rw-r--r-- | drivers/media/pci/mantis/mantis_ca.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/pci/mantis/mantis_ca.c b/drivers/media/pci/mantis/mantis_ca.c index 3d7046909009..60c6c2f24066 100644 --- a/drivers/media/pci/mantis/mantis_ca.c +++ b/drivers/media/pci/mantis/mantis_ca.c | |||
@@ -198,11 +198,12 @@ void mantis_ca_exit(struct mantis_pci *mantis) | |||
198 | struct mantis_ca *ca = mantis->mantis_ca; | 198 | struct mantis_ca *ca = mantis->mantis_ca; |
199 | 199 | ||
200 | dprintk(MANTIS_DEBUG, 1, "Mantis CA exit"); | 200 | dprintk(MANTIS_DEBUG, 1, "Mantis CA exit"); |
201 | if (!ca) | ||
202 | return; | ||
201 | 203 | ||
202 | mantis_evmgr_exit(ca); | 204 | mantis_evmgr_exit(ca); |
203 | dprintk(MANTIS_ERROR, 1, "Unregistering EN50221 device"); | 205 | dprintk(MANTIS_ERROR, 1, "Unregistering EN50221 device"); |
204 | if (ca) | 206 | dvb_ca_en50221_release(&ca->en50221); |
205 | dvb_ca_en50221_release(&ca->en50221); | ||
206 | 207 | ||
207 | kfree(ca); | 208 | kfree(ca); |
208 | } | 209 | } |