lkml.org 
[lkml]   [2008]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@hp.com>

Acked-by: Rene Herman <rene.herman@gmail.com>

Rene.



\
 
 \ /
  Last update: 2008-05-20 01:25    [W:2.747 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site