diff options
author | Xiaotian Feng <dfeng@redhat.com> | 2009-12-03 11:06:40 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-03 11:17:55 (GMT) |
commit | 57fea8f7ab67ef42b7f84999e49e47f8717a2d5b (patch) | |
tree | e5c0dc49f35dc8af33abad4bad33ea17de94db9d | |
parent | 22763c5cf3690a681551162c15d34d935308c8d7 (diff) | |
download | linux-57fea8f7ab67ef42b7f84999e49e47f8717a2d5b.tar.xz |
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>
-rw-r--r-- | arch/x86/kernel/reboot_fixups_32.c | 1 |
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 61a8377..201eab6 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); } } |