Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130073
b: refs/heads/master
c: c2fdd36
h: refs/heads/master
i:
  130071: 03c15a0
v: v3
  • Loading branch information
Jiri Slaby authored and Jesse Barnes committed Jan 19, 2009
1 parent 2381de1 commit d863251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa8c6c93747f7b55fa11e1624fec8ca33763a805
refs/heads/master: c2fdd36b550659f5ac2240d1f5a83ffa1a092289
4 changes: 3 additions & 1 deletion trunk/drivers/pci/hotplug/pciehp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d863251

Please sign in to comment.