x86/reboot: Add pci_dev_put in reboot_fixup_32.c for consistency
authorXiaotian Feng <dfeng@redhat.com>
Thu, 3 Dec 2009 11:06:40 +0000 (19:06 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 3 Dec 2009 11:17:55 +0000 (12:17 +0100)
pci_get_device will increase the ref count of found device.
Although we're going to reset soon, we should use pci_dev_put
to decrease the ref count for consistency.

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1259838400-23833-1-git-send-email-dfeng@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/reboot_fixups_32.c

index 61a837743fe5b7f91284bdfc97826ee802917132..201eab63b05fda18954dc111f7c15b44c0eafddf 100644 (file)
@@ -80,6 +80,7 @@ void mach_reboot_fixups(void)
                        continue;
 
                cur->reboot_fixup(dev);
+               pci_dev_put(dev);
        }
 }