diff options
author | Xiaotian Feng <[email protected]> | 2009-12-03 19:06:40 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-12-03 12:17:55 +0100 |
commit | 57fea8f7ab67ef42b7f84999e49e47f8717a2d5b (patch) | |
tree | e5c0dc49f35dc8af33abad4bad33ea17de94db9d | |
parent | 22763c5cf3690a681551162c15d34d935308c8d7 (diff) |
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 <[email protected]>
Acked-by: H. Peter Anvin <[email protected]>
Cc: Yinghai Lu <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
-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 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); } } |