PCI: pci_get_device call from interrupt in reboot fixups
authorDenis V. Lunev <den@openvz.org>
Tue, 7 Aug 2007 09:13:18 +0000 (13:13 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 22:03:15 +0000 (15:03 -0700)
commit3d034aecd8b70d34388a4e40ca50af0d014223e1
tree952a767bbd21fa9ed208619b31e5c5ff46ab4430
parentaa24886e379d2b641c5117e178b15ce1d5d366ba
PCI: pci_get_device call from interrupt in reboot fixups

The following calltrace is possible now:
 handle_sysrq
   machine_emergency_restart
     mach_reboot_fixups
       pci_get_device
         pci_get_subsys
   down_read
The patch skips reboot fixup if called from sysrq-B code.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/reboot_fixups_32.c