Skip to content

Commit

Permalink
[SCSI] scsi_dh: Do not use scsilun in rdac hardware handler
Browse files Browse the repository at this point in the history
RDAC storage controller doesn't seem to use the scsilun format. It uses
only the last byte for LUN.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Chandra Seetharaman authored and James Bottomley committed Aug 16, 2008
1 parent 24541f9 commit 8479fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/device_handler/scsi_dh_rdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static int get_lun(struct scsi_device *sdev, struct rdac_dh_data *h)
if (inqp->page_id[0] != 'e' || inqp->page_id[1] != 'd' ||
inqp->page_id[2] != 'i' || inqp->page_id[3] != 'd')
return SCSI_DH_NOSYS;
h->lun = scsilun_to_int((struct scsi_lun *)inqp->lun);
h->lun = inqp->lun[7]; /* Uses only the last byte */
}
return err;
}
Expand Down

0 comments on commit 8479fca

Please sign in to comment.