From: Frank Mori Hess Date: Mon, 4 Jul 2005 18:20:43 +0000 (+0000) Subject: add missing iounmap in detach X-Git-Tag: branch-0_7-end~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e8969060c23d48b0ab99ee4cc4f2f2563a8957e;p=comedi.git add missing iounmap in detach --- diff --git a/comedi/drivers/dt3000.c b/comedi/drivers/dt3000.c index 98f99831..d95d2201 100644 --- a/comedi/drivers/dt3000.c +++ b/comedi/drivers/dt3000.c @@ -853,8 +853,11 @@ static int dt3000_detach(comedi_device *dev) { if(dev->irq)comedi_free_irq(dev->irq,dev); - if(devpriv && devpriv->pci_dev) pci_dev_put(devpriv->pci_dev); - + if(devpriv) + { + if(devpriv->pci_dev) pci_dev_put(devpriv->pci_dev); + if(devpriv->io_addr) iounmap(devpriv->io_addr); + } /* XXX */ return 0;