pata_via: fix double put on isa bridge
authorJiri Slaby <jirislaby@gmail.com>
Wed, 4 Nov 2009 16:11:03 +0000 (17:11 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 3 Dec 2009 07:46:34 +0000 (02:46 -0500)
commit7095e3eb49869051594b33f6110edd65aff6be50
tree026df9eb33d60c3a7311cee10d668d47f2627220
parentba3a221ce2ec0b636a15e12c23c97af68b9b1114
pata_via: fix double put on isa bridge

In via_init_one, when via_isa_bridges iterator reaches
PCI_DEVICE_ID_VIA_ANON and last but one via_isa_bridges bridge is
found but rev doesn't match, pci_dev_put(isa) is called twice.

Do pci_dev_put only once.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_via.c