Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264268
b: refs/heads/master
c: a73914c
h: refs/heads/master
v: v3
  • Loading branch information
Mark Salyzyn authored and James Bottomley committed Oct 2, 2011
1 parent 28ebaee commit 1ee2cc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 9bfacd01dc9b7519e1e6da12b01963550b9d09a2
refs/heads/master: a73914c35b05d80f8ce78288e10056c91090b666
10 changes: 6 additions & 4 deletions trunk/drivers/scsi/libsas/sas_expander.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,10 +1769,12 @@ static void sas_unregister_devs_sas_addr(struct domain_device *parent,
sas_disable_routing(parent, phy->attached_sas_addr);
}
memset(phy->attached_sas_addr, 0, SAS_ADDR_SIZE);
sas_port_delete_phy(phy->port, phy->phy);
if (phy->port->num_phys == 0)
sas_port_delete(phy->port);
phy->port = NULL;
if (phy->port) {
sas_port_delete_phy(phy->port, phy->phy);
if (phy->port->num_phys == 0)
sas_port_delete(phy->port);
phy->port = NULL;
}
}

static int sas_discover_bfs_by_root_level(struct domain_device *root,
Expand Down

0 comments on commit 1ee2cc0

Please sign in to comment.