add missing iounmap in detach
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Jul 2005 18:20:43 +0000 (18:20 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Jul 2005 18:20:43 +0000 (18:20 +0000)
comedi/drivers/dt3000.c

index 98f9983196581f433538b29386a5e8bc9d3e9b27..d95d22018c2ffbb48ec1b9a7f1330909f96bf84c 100644 (file)
@@ -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;