]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Fix pci_find_present
authorBen Gardner <gardner.ben@gmail.com>
Fri, 11 May 2007 05:58:58 +0000 (22:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 31 May 2007 23:56:37 +0000 (16:56 -0700)
commit0b5bcf5408d59c17a1f0b81bb05dcc679e7eccb8
tree203717bccf072e32dc62db493b0fee6aa4201a44
parent26047060a70cba9d0a2ba3c381bc55ec1faf0e11
PCI: Fix pci_find_present

pci_find_present() is only matching the last item in the list of ids.

The break after the match is found only escapes the for loop, not the
while loop, so found gets reset to NULL on the next pass.

Signed-off-by: Ben Gardner <gardner.ben@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/search.c