Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213383
b: refs/heads/master
c: 2bc72c9
h: refs/heads/master
i:
  213381: 39bbcfb
  213379: b8fa345
  213375: 47289bf
v: v3
  • Loading branch information
Jack Wang authored and James Bottomley committed Oct 11, 2010
1 parent acfc7ba commit f798c0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 526f7c7950bbf1271e59177d70d74438c2ef96de
refs/heads/master: 2bc72c91ea7e104b0e40151543d135b933a12e93
9 changes: 6 additions & 3 deletions trunk/drivers/scsi/libsas/sas_expander.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ static void sas_set_ex_phy(struct domain_device *dev, int phy_id,
switch (resp->result) {
case SMP_RESP_PHY_VACANT:
phy->phy_state = PHY_VACANT;
return;
break;
default:
phy->phy_state = PHY_NOT_PRESENT;
return;
break;
case SMP_RESP_FUNC_ACC:
phy->phy_state = PHY_EMPTY; /* do not know yet */
break;
Expand Down Expand Up @@ -209,7 +209,10 @@ static void sas_set_ex_phy(struct domain_device *dev, int phy_id,
phy->phy->negotiated_linkrate = phy->linkrate;

if (!rediscover)
sas_phy_add(phy->phy);
if (sas_phy_add(phy->phy)) {
sas_phy_free(phy->phy);
return;
}

SAS_DPRINTK("ex %016llx phy%02d:%c attached: %016llx\n",
SAS_ADDR(dev->sas_addr), phy->phy_id,
Expand Down

0 comments on commit f798c0d

Please sign in to comment.