summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2008-08-13 02:26:59 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-08-16 17:13:34 +0200
commitfe42625cdf0d4e06f01e365897a64b68d7f7de7d (patch)
treed0c4a3c9ed2a97ed8dbd7e388414ae139ba085f0 /drivers/scsi
parent[SCSI] scsi_dh: Do not use scsilun in rdac hardware handler (diff)
downloadlinux-fe42625cdf0d4e06f01e365897a64b68d7f7de7d.tar.xz
linux-fe42625cdf0d4e06f01e365897a64b68d7f7de7d.zip
[SCSI] scsi_dh: Initialize lun_state in check_ownership()
lun_state need to be initialized inside check_ownership(). Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_rdac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_rdac.c b/drivers/scsi/device_handler/scsi_dh_rdac.c
index 86365461a1cf..518da832ad26 100644
--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -386,6 +386,7 @@ static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h)
int err;
struct c9_inquiry *inqp;
+ h->lun_state = RDAC_LUN_UNOWNED;
err = submit_inquiry(sdev, 0xC9, sizeof(struct c9_inquiry), h);
if (err == SCSI_DH_OK) {
inqp = &h->inq.c9;