Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13926
b: refs/heads/master
c: 692aebf
h: refs/heads/master
v: v3
  • Loading branch information
brking@us.ibm.com authored and James Bottomley committed Nov 6, 2005
1 parent 15fed48 commit 309f75b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 0726ce26104671e3072d90b9c697c253974e823d
refs/heads/master: 692aebfc6982a64e70ed11467545f2b9c95e6592
6 changes: 4 additions & 2 deletions trunk/drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2815,13 +2815,14 @@ static int ipr_slave_configure(struct scsi_device *sdev)
* handling new commands.
*
* Return value:
* 0 on success
* 0 on success / -ENXIO if device does not exist
**/
static int ipr_slave_alloc(struct scsi_device *sdev)
{
struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
struct ipr_resource_entry *res;
unsigned long lock_flags;
int rc = -ENXIO;

sdev->hostdata = NULL;

Expand All @@ -2836,13 +2837,14 @@ static int ipr_slave_alloc(struct scsi_device *sdev)
res->in_erp = 0;
sdev->hostdata = res;
res->needs_sync_complete = 1;
rc = 0;
break;
}
}

spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags);

return 0;
return rc;
}

/**
Expand Down

0 comments on commit 309f75b

Please sign in to comment.