[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4831FDC6.3090709@keyaccess.nl>
Date: Tue, 20 May 2008 00:23:02 +0200
From: Rene Herman <rene.herman@...access.nl>
To: Bjorn Helgaas <bjorn.helgaas@...com>
CC: Len Brown <lenb@...nel.org>, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, Adam Belay <ambx1@....rr.com>,
Adam M Belay <abelay@....edu>,
Li Shaohua <shaohua.li@...el.com>,
Matthieu Castet <castet.matthieu@...e.fr>,
Thomas Renninger <trenn@...e.de>,
Jaroslav Kysela <perex@...ex.cz>,
Andrew Morton <akpm@...ux-foundation.org>,
Takashi Iwai <tiwai@...e.de>
Subject: Re: [patch 1/4] PNP: make pnp_{port,mem,etc}_start(), et al work
for invalid resources
On 16-05-08 00:07, Bjorn Helgaas wrote:
> Some callers use pnp_port_start() and similar functions without
> making sure the resource is valid. This patch makes us fall
> back to returning the initial values if the resource is not
> valid or not even present.
>
> This mostly preserves the previous behavior, where we would just
> return the initial values set by pnp_init_resource_table(). The
> original 2.6.25 code didn't range-check the "bar", so it would
> return garbage if the bar exceeded the table size. This code
> returns sensible values instead.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@...com>
Acked-by: Rene Herman <rene.herman@...il.com>
Rene.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists