]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: hotplug: pciehp: Fix possible race condition in writing slot
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Thu, 31 May 2007 16:43:34 +0000 (09:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:08 +0000 (16:02 -0700)
commit403a1dc2c0ef832fc29d9546118d42727986925d
tree178c8e7efd7a3f8f0220d3da537d649f4cb1278f
parent48002471c5197cebe7d91ed54c131dbb329db6dd
PCI: hotplug: pciehp: Fix possible race condition in writing slot

The slot control register is modified as follows:

    (1) Read the register value
    (2) Change the value
    (3) Write the value to the register

Those must be done atomically, otherwise writing to control register
would cause an unexpected result.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_hpc.c