]> err.no Git - linux-2.6/commitdiff
W1: ioremap balanced with iounmap
authorAmol Lad <amol@verismonetworks.com>
Thu, 5 Oct 2006 10:26:02 +0000 (14:26 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Nov 2006 22:30:26 +0000 (14:30 -0800)
ioremap must be balanced with iounmap in error path.

Please consider for 2.6.19.

Signed-off-by: Amol Lad <amol@verismonetworks.com>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/w1/masters/matrox_w1.c

index 2788b8ca9bb1e882b127e23ec9550e2d6f76fe7f..6f9d880ab2e9e0d9f3a0bff4c4d90ab668ff39e8 100644 (file)
@@ -215,6 +215,8 @@ static int __devinit matrox_w1_probe(struct pci_dev *pdev, const struct pci_devi
        return 0;
 
 err_out_free_device:
+       if (dev->virt_addr)
+               iounmap(dev->virt_addr);
        kfree(dev);
 
        return err;