diff options
Diffstat (limited to 'drivers/pci/rom.c')
-rw-r--r-- | drivers/pci/rom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/rom.c b/drivers/pci/rom.c index 5d595724e5f4..c1839450d4d6 100644 --- a/drivers/pci/rom.c +++ b/drivers/pci/rom.c | |||
@@ -197,8 +197,10 @@ void pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom) | |||
197 | void pci_cleanup_rom(struct pci_dev *pdev) | 197 | void pci_cleanup_rom(struct pci_dev *pdev) |
198 | { | 198 | { |
199 | struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; | 199 | struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; |
200 | |||
200 | if (res->flags & IORESOURCE_ROM_COPY) { | 201 | if (res->flags & IORESOURCE_ROM_COPY) { |
201 | kfree((void*)(unsigned long)res->start); | 202 | kfree((void*)(unsigned long)res->start); |
203 | res->flags |= IORESOURCE_UNSET; | ||
202 | res->flags &= ~IORESOURCE_ROM_COPY; | 204 | res->flags &= ~IORESOURCE_ROM_COPY; |
203 | res->start = 0; | 205 | res->start = 0; |
204 | res->end = 0; | 206 | res->end = 0; |