Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37182
b: refs/heads/master
c: c78f641
h: refs/heads/master
v: v3
  • Loading branch information
Bryan O'Sullivan authored and Roland Dreier committed Sep 28, 2006
1 parent e91d0b3 commit 4a3afe9
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 2c9446a1d63f1ca570e92f89422595732efedf44
refs/heads/master: c78f6415e964aafd3a91d834970c16b613e421d9
12 changes: 11 additions & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,12 @@ static void __devexit ipath_remove_one(struct pci_dev *pdev)
return;

dd = pci_get_drvdata(pdev);
ipath_unregister_ib_device(dd->verbs_dev);

if (dd->verbs_dev) {
ipath_unregister_ib_device(dd->verbs_dev);
dd->verbs_dev = NULL;
}

ipath_diag_remove(dd);
ipath_user_remove(dd);
ipathfs_remove_device(dd);
Expand Down Expand Up @@ -2027,6 +2032,11 @@ static void __exit infinipath_cleanup(void)
list_for_each_entry_safe(dd, tmp, &ipath_dev_list, ipath_list) {
spin_unlock_irqrestore(&ipath_devs_lock, flags);

if (dd->verbs_dev) {
ipath_unregister_ib_device(dd->verbs_dev);
dd->verbs_dev = NULL;
}

if (dd->ipath_kregbase)
cleanup_device(dd);

Expand Down

0 comments on commit 4a3afe9

Please sign in to comment.