linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / mtd / maps / pci.c
index d2ab1ba..21822c2 100644 (file)
@@ -334,6 +334,9 @@ mtd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
        return 0;
 
 release:
+       if (mtd)
+               map_destroy(mtd);
+
        if (map) {
                map->exit(dev, map);
                kfree(map);