diff --git a/[refs] b/[refs] index e3244b208f81..edd90d47b4f0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e3008dedff4bdc96a5f67224cd3d8d12237082a0 +refs/heads/master: 3c92c57af9a24a08b8d2f76650b1209239914fcd diff --git a/trunk/drivers/pci/search.c b/trunk/drivers/pci/search.c index b137a27472c7..c13232435dc0 100644 --- a/trunk/drivers/pci/search.c +++ b/trunk/drivers/pci/search.c @@ -403,10 +403,11 @@ const struct pci_device_id *pci_find_present(const struct pci_device_id *ids) while (ids->vendor || ids->subvendor || ids->class_mask) { list_for_each_entry(dev, &pci_devices, global_list) { if ((found = pci_match_one_device(ids, dev)) != NULL) - break; + goto exit; } ids++; } +exit: up_read(&pci_bus_sem); return found; }