]> git.baikalelectronics.ru Git - kernel.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)
commit40937dca6f3ef49eaecd81e44e8a2fc6ca0e0d70
tree386c26d42ce6b8585b5f03e8a8cbc8abbc242f89
parent101993196c0445c683caf9c15f28565173fdf6ac
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