Skip to content

Commit

Permalink
x86/reboot: Add pci_dev_put in reboot_fixup_32.c for consistency
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiaotian Feng authored and Ingo Molnar committed Dec 3, 2009
1 parent 22763c5 commit 57fea8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/kernel/reboot_fixups_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void mach_reboot_fixups(void)
continue;

cur->reboot_fixup(dev);
pci_dev_put(dev);
}
}

0 comments on commit 57fea8f

Please sign in to comment.