agp: amd64, fix pci reference leaks
authorJiri Slaby <jirislaby@gmail.com>
Mon, 24 May 2010 19:14:15 +0000 (12:14 -0700)
committerDave Airlie <airlied@redhat.com>
Wed, 26 May 2010 02:54:39 +0000 (12:54 +1000)
commit2101d6f7ac791e87a274371a07a408f74e40ec49
treec35ef331a11f6ae042e47c9cb8b2028562b42bb6
parent4a638b4e38234233f5c7e6705662fbc0b58d80c2
agp: amd64, fix pci reference leaks

Stanse found pci reference leaks in uli_agp_init and nforce3_agp_init
initialization functions.

The PCI devices are bridges, so it's not critical, but still worth fixing.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/amd64-agp.c