Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63143
b: refs/heads/master
c: 92631fa
h: refs/heads/master
i:
  63141: 15c3211
  63139: 13bf242
  63135: a57a968
v: v3
  • Loading branch information
Jesper Juhl authored and James Bottomley committed Jul 28, 2007
1 parent 683a2f4 commit 7a4a7c7
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 99d4d0a9f251a87e0710c6f1fb46ac0d4bce12cb
refs/heads/master: 92631fa4d0afa64b82144eab714fbf2f4049dabe
13 changes: 10 additions & 3 deletions trunk/drivers/scsi/libsas/sas_expander.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,21 @@ static int sas_dev_present_in_domain(struct asd_sas_port *port,
int sas_smp_get_phy_events(struct sas_phy *phy)
{
int res;
u8 *req;
u8 *resp;
struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent);
struct domain_device *dev = sas_find_dev_by_rphy(rphy);
u8 *req = alloc_smp_req(RPEL_REQ_SIZE);
u8 *resp = kzalloc(RPEL_RESP_SIZE, GFP_KERNEL);

if (!resp)
req = alloc_smp_req(RPEL_REQ_SIZE);
if (!req)
return -ENOMEM;

resp = alloc_smp_resp(RPEL_RESP_SIZE);
if (!resp) {
kfree(req);
return -ENOMEM;
}

req[1] = SMP_REPORT_PHY_ERR_LOG;
req[9] = phy->number;

Expand Down

0 comments on commit 7a4a7c7

Please sign in to comment.