]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/PCI: MMCONFIG: Check earlier for MMCONFIG region at address zero
authorethan.zhao <ethan.zhao@oracle.com>
Fri, 26 Jul 2013 17:21:24 +0000 (11:21 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 26 Jul 2013 17:21:24 +0000 (11:21 -0600)
commit07f9b61c3915e8eb156cb4461b3946736356ad02
tree386c26d42ce6b8585b5f03e8a8cbc8abbc242f89
parent56039e658cc902fe6e3d1276bb78f7e69768cd35
x86/PCI: MMCONFIG: Check earlier for MMCONFIG region at address zero

We can check for addr being zero earlier and thus avoid the mutex_unlock()
cleanup path.

[bhelgaas: drop warning printk]
Signed-off-by: ethan.zhao <ethan.zhao@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
arch/x86/pci/mmconfig-shared.c