diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index a4eee324eb1ece730780079d0d968b316330a1e6..84e6a7e673b7a5cebf2a4cd3b79e43749e20a331 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -1000,6 +1000,8 @@ static int hpet_acpi_add(struct acpi_device *device) return -ENODEV; if (!data.hd_address || !data.hd_nirqs) { + if (data.hd_address) + iounmap(data.hd_address); printk("%s: no address or irqs in _CRS\n", __func__); return -ENODEV; }