diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-26 10:13:36 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-26 10:13:36 -0800 |
commit | 4a4565921aa9255be01921ff8ae339fa7b0a5468 (patch) | |
tree | 61fc69b6e2a82947550d6c441b62986c816ad911 /drivers/pci/hotplug | |
parent | 7954d5cf39ee1ce9bb0a4b19fcf1924885a9cad1 (diff) | |
parent | c2fdd36b550659f5ac2240d1f5a83ffa1a092289 (diff) | |
download | kernel_samsung_smdk4412-4a4565921aa9255be01921ff8ae339fa7b0a5468.zip kernel_samsung_smdk4412-4a4565921aa9255be01921ff8ae339fa7b0a5468.tar.gz kernel_samsung_smdk4412-4a4565921aa9255be01921ff8ae339fa7b0a5468.tar.bz2 |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
PCI hotplug: fix lock imbalance in pciehp
PCI PM: Restore standard config registers of all devices early
PCI/MSI: bugfix/utilize for msi_capability_init()
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/pciehp_core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c index 5482d4e..c248554 100644 --- a/drivers/pci/hotplug/pciehp_core.c +++ b/drivers/pci/hotplug/pciehp_core.c @@ -126,8 +126,10 @@ static int set_lock_status(struct hotplug_slot *hotplug_slot, u8 status) mutex_lock(&slot->ctrl->crit_sect); /* has it been >1 sec since our last toggle? */ - if ((get_seconds() - slot->last_emi_toggle) < 1) + if ((get_seconds() - slot->last_emi_toggle) < 1) { + mutex_unlock(&slot->ctrl->crit_sect); return -EINVAL; + } /* see what our current state is */ retval = get_lock_status(hotplug_slot, &value); |