From: Xiaotian Feng Date: Thu, 3 Dec 2009 11:06:40 +0000 (+0800) Subject: x86/reboot: Add pci_dev_put in reboot_fixup_32.c for consistency X-Git-Tag: v2.6.33-rc1~371^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=57fea8f7ab67ef42b7f84999e49e47f8717a2d5b;p=~emulex%2Finfiniband.git x86/reboot: Add pci_dev_put in reboot_fixup_32.c for consistency 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 Acked-by: H. Peter Anvin Cc: Yinghai Lu LKML-Reference: <1259838400-23833-1-git-send-email-dfeng@redhat.com> Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/reboot_fixups_32.c b/arch/x86/kernel/reboot_fixups_32.c index 61a837743fe..201eab63b05 100644 --- a/arch/x86/kernel/reboot_fixups_32.c +++ b/arch/x86/kernel/reboot_fixups_32.c @@ -80,6 +80,7 @@ void mach_reboot_fixups(void) continue; cur->reboot_fixup(dev); + pci_dev_put(dev); } }