x86/PCI: Clear host bridge aperture struct resource
authorYinghai Lu <yinghai@kernel.org>
Wed, 19 Sep 2012 17:49:00 +0000 (10:49 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Sep 2012 20:52:28 +0000 (14:52 -0600)
commit4cd8daf05c7071ac80008c8d4368860110fa6466
treee42fcea6f27656e321309d13b49468a140283916
parent817a268516f3aaf9e54c5a0f880de37d03ef4c79
x86/PCI: Clear host bridge aperture struct resource

Use kzalloc() so the struct resource doesn't contain garbage in
fields we don't initialize.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: x86@kernel.org
arch/x86/pci/acpi.c