Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316811
b: refs/heads/master
c: b2311a2
h: refs/heads/master
i:
  316809: 4dec652
  316807: 08f263b
v: v3
  • Loading branch information
Jeff Skirvin authored and James Bottomley committed Jul 20, 2012
1 parent b55189b commit 811533b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 4e646ddd5faf707602dcb4b491412b72180da3b3
refs/heads/master: b2311a287553af4dffaef224cdd6e3ddf6783312
7 changes: 6 additions & 1 deletion trunk/drivers/scsi/libsas/sas_expander.c
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,7 @@ static int sas_rediscover_dev(struct domain_device *dev, int phy_id, bool last)
u8 sas_addr[8];
int res;

memset(sas_addr, 0, 8);
res = sas_get_phy_attached_dev(dev, phy_id, sas_addr, &type);
switch (res) {
case SMP_RESP_NO_PHY:
Expand All @@ -2017,9 +2018,13 @@ static int sas_rediscover_dev(struct domain_device *dev, int phy_id, bool last)
return res;
case SMP_RESP_FUNC_ACC:
break;
case -ECOMM:
break;
default:
return res;
}

if (SAS_ADDR(sas_addr) == 0) {
if ((SAS_ADDR(sas_addr) == 0) || (res == -ECOMM)) {
phy->phy_state = PHY_EMPTY;
sas_unregister_devs_sas_addr(dev, phy_id, last);
return res;
Expand Down

0 comments on commit 811533b

Please sign in to comment.