Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283391
b: refs/heads/master
c: 424eb39
h: refs/heads/master
i:
  283389: f0b05a2
  283387: 6e0d1b1
  283383: 62afd7a
  283375: 230ebeb
  283359: 8d2a3a6
  283327: 2968018
  283263: 86cd68d
  283135: 563fc3a
v: v3
  • Loading branch information
Neil Horman authored and Jesse Barnes committed Jan 6, 2012
1 parent 72d45e5 commit c0cafde
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: d56641c7723c92487fb4bbcd995ad74169e2329b
refs/heads/master: 424eb391596a38ddf422bee1617e4b9dea60126f
14 changes: 12 additions & 2 deletions trunk/drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,18 @@ static void free_msi_irqs(struct pci_dev *dev)
if (list_is_last(&entry->list, &dev->msi_list))
iounmap(entry->mask_base);
}
kobject_del(&entry->kobj);
kobject_put(&entry->kobj);

/*
* Its possible that we get into this path
* When populate_msi_sysfs fails, which means the entries
* were not registered with sysfs. In that case don't
* unregister them.
*/
if (entry->kobj.parent) {
kobject_del(&entry->kobj);
kobject_put(&entry->kobj);
}

list_del(&entry->list);
kfree(entry);
}
Expand Down

0 comments on commit c0cafde

Please sign in to comment.