Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204137
b: refs/heads/master
c: ab6ce92
h: refs/heads/master
i:
  204135: 3014b9c
v: v3
  • Loading branch information
Kashyap, Desai authored and James Bottomley committed Jul 27, 2010
1 parent 3331467 commit 86458d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 593d5720745658a4a973952fb74f6d863c531e97
refs/heads/master: ab6ce92541ea24c6a92be8498d7d1b26c14ec62d
12 changes: 6 additions & 6 deletions trunk/drivers/scsi/mpt2sas/mpt2sas_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,18 +1007,18 @@ static int
_transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
{
struct MPT2SAS_ADAPTER *ioc = rphy_to_ioc(rphy);
struct _sas_node *sas_expander;
struct _sas_device *sas_device;
unsigned long flags;

spin_lock_irqsave(&ioc->sas_node_lock, flags);
sas_expander = mpt2sas_scsih_expander_find_by_sas_address(ioc,
spin_lock_irqsave(&ioc->sas_device_lock, flags);
sas_device = mpt2sas_scsih_sas_device_find_by_sas_address(ioc,
rphy->identify.sas_address);
spin_unlock_irqrestore(&ioc->sas_node_lock, flags);
spin_unlock_irqrestore(&ioc->sas_device_lock, flags);

if (!sas_expander)
if (!sas_device)
return -ENXIO;

*identifier = sas_expander->enclosure_logical_id;
*identifier = sas_device->enclosure_logical_id;
return 0;
}

Expand Down

0 comments on commit 86458d6

Please sign in to comment.