diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-06-28 02:56:56 +0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-17 01:27:05 +0400 |
commit | 20bfdbba7212d19613b93dcea93f26cb65af91fe (patch) | |
tree | ae75729ddb1cb82931d740fd6a812f295749f706 /include/linux/nsproxy.h | |
parent | 9fdee4e02e3b214cde8e4f3beb6776075a3d08a7 (diff) | |
download | linux-20bfdbba7212d19613b93dcea93f26cb65af91fe.tar.xz |
PNP: make pnp_{port,mem,etc}_start(), et al work for invalid resources
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>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/linux/nsproxy.h')
0 files changed, 0 insertions, 0 deletions