Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358435
b: refs/heads/master
c: fd6dcea
h: refs/heads/master
i:
  358433: 0f428d4
  358431: 2e1ae71
v: v3
  • Loading branch information
Konstantin Khlebnikov authored and Bjorn Helgaas committed Feb 12, 2013
1 parent b467b37 commit b214ec3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7897e6022761ace7377f0f784fca059da55f5d71
refs/heads/master: fd6dceab017e6be6c158dc56ec6dacf817f21a5b
3 changes: 3 additions & 0 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,9 @@ pci_disable_device(struct pci_dev *dev)
if (dr)
dr->enabled = 0;

dev_WARN_ONCE(&dev->dev, atomic_read(&dev->enable_cnt) <= 0,
"disabling already-disabled device");

if (atomic_sub_return(1, &dev->enable_cnt) != 0)
return;

Expand Down

0 comments on commit b214ec3

Please sign in to comment.