x86/PCI: fix boundary checking when using root CRS
authorYinghai Lu <yinghai@kernel.org>
Thu, 25 Jun 2009 02:01:19 +0000 (19:01 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 30 Jun 2009 20:43:57 +0000 (13:43 -0700)
commit2cdb3f1d834aab27a927be7555fbf4f9e43e9261
tree081d2837b5880d7892ae2d37c6fe483bd6d6c7b1
parent12abb8ba8444f7c9b355bbdd44a6d0839f7a41b6
x86/PCI: fix boundary checking when using root CRS

Don't touch info->res_num if we are out of space.

Acked-by: Gary Hade <garyhade@us.ibm.com>
Tested-by: Gary Hade <garyhade@us.ibm.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/pci/acpi.c