Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47725
b: refs/heads/master
c: bf45120
h: refs/heads/master
i:
  47723: ad8d6b3
v: v3
  • Loading branch information
Darrick J. Wong authored and James Bottomley committed Jan 13, 2007
1 parent 8693a70 commit a3cee24
Show file tree
Hide file tree
Showing 2 changed files with 17 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: 8880839815265ccc0edaff52ba08d750eea57acb
refs/heads/master: bf451207511d049189ddb0a4eae3acdb086a3c82
20 changes: 16 additions & 4 deletions trunk/drivers/scsi/libsas/sas_expander.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ static struct domain_device *sas_ex_discover_end_dev(

out_list_del:
list_del(&child->dev_list_node);
sas_rphy_free(rphy);
out_free:
sas_port_delete(phy->port);
out_err:
Expand Down Expand Up @@ -1431,14 +1430,27 @@ int sas_discover_root_expander(struct domain_device *dev)
int res;
struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy);

sas_rphy_add(dev->rphy);
res = sas_rphy_add(dev->rphy);
if (res)
goto out_err;

ex->level = dev->port->disc.max_level; /* 0 */
res = sas_discover_expander(dev);
if (!res)
sas_ex_bfs_disc(dev->port);
if (res)
goto out_err2;

sas_ex_bfs_disc(dev->port);

return res;

out_err2:
sas_rphy_delete(dev->rphy);
dev->rphy = NULL;
return res;
out_err:
sas_rphy_free(dev->rphy);
dev->rphy = NULL;
return res;
}

/* ---------- Domain revalidation ---------- */
Expand Down

0 comments on commit a3cee24

Please sign in to comment.