]> Pileus Git - ~andy/linux/blobdiff - drivers/video/sis/sis_main.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[~andy/linux] / drivers / video / sis / sis_main.c
index 5b28fa2038fffa803bbe71d707717dfaed067136..73803624c1318cd4bb82f18a5084284d924673d3 100644 (file)
@@ -4621,9 +4621,9 @@ sisfb_find_host_bridge(struct sis_video_info *ivideo, struct pci_dev *mypdev,
 
        while((pdev = pci_get_class(PCI_CLASS_BRIDGE_HOST, pdev))) {
                temp = pdev->vendor;
-               pci_dev_put(pdev);
                if(temp == pcivendor) {
                        ret = 1;
+                       pci_dev_put(pdev);
                        break;
                }
        }