From: Clemens Ladisch <clemens@ladisch.de>
To: Jiri Slaby <jslaby@suse.cz>
Cc: linux-kernel@vger.kernel.org, jirislaby@gmail.com,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 1/1] HPET: unmap unused I/O space
Date: Tue, 24 Aug 2010 08:38:28 +0200 [thread overview]
Message-ID: <4C7368E4.30501@ladisch.de> (raw)
In-Reply-To: <1282595278-22226-1-git-send-email-jslaby@suse.cz>
Jiri Slaby wrote:
> When the initialization code in hpet founds a memory resource and does
> not found IRQ, it does not unmap the memory resource previously
> mapped.
> [...]
> Since I got no reply previously, fix this by simply unmapping the
> space when IRQ is not found and memory region was mapped previously.
>
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> Cc: Clemens Ladisch <clemens@ladisch.de>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
> ---
> drivers/char/hpet.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> --- a/drivers/char/hpet.c
> +++ b/drivers/char/hpet.c
> @@ -1017,6 +1017,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;
> }
prev parent reply other threads:[~2010-08-24 6:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 20:27 [PATCH 1/1] HPET: unmap unused I/O space Jiri Slaby
2010-08-24 6:38 ` Clemens Ladisch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C7368E4.30501@ladisch.de \
--to=clemens@ladisch.de \
--cc=akpm@linux-foundation.org \
--cc=jirislaby@gmail.com \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox