X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fpci%2Fiov.c;h=1fe2d6fb19d5046ae78aaa6df3f26f37c12bf6bf;hb=a759012e5f9717a69c2c2f03d6c7fe435e150824;hp=21a7182dccd435865347d223ead22e73a02fe0db;hpb=323f6226a816f0b01514d25fba5529e0e68636c3;p=~andy%2Flinux diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index 21a7182dccd..1fe2d6fb19d 100644 --- a/drivers/pci/iov.c +++ b/drivers/pci/iov.c @@ -610,7 +610,7 @@ resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno) struct resource tmp; enum pci_bar_type type; int reg = pci_iov_resource_bar(dev, resno, &type); - + if (!reg) return 0;