summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorXiaotian Feng <dfeng@redhat.com>2009-12-03 19:06:40 +0800
committerIngo Molnar <mingo@elte.hu>2009-12-03 12:17:55 +0100
commit57fea8f7ab67ef42b7f84999e49e47f8717a2d5b (patch)
treee5c0dc49f35dc8af33abad4bad33ea17de94db9d /arch
parent22763c5cf3690a681551162c15d34d935308c8d7 (diff)
downloadblackbird-op-linux-57fea8f7ab67ef42b7f84999e49e47f8717a2d5b.tar.gz
blackbird-op-linux-57fea8f7ab67ef42b7f84999e49e47f8717a2d5b.zip
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 <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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/reboot_fixups_32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/reboot_fixups_32.c b/arch/x86/kernel/reboot_fixups_32.c
index 61a837743fe5..201eab63b05f 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);
}
}
OpenPOWER on IntegriCloud