Commit 0f08f273 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[PATCH] PATCH [6/15] qla2xxx: LoopID downcast fix

  Fix problem where the driver would incorrectly down-cast the target
  loop_id while retrieving link statistics.

 drivers/scsi/qla2xxx/qla_gbl.h |    2 +-
 drivers/scsi/qla2xxx/qla_mbx.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
parent 4c42f515
...@@ -198,7 +198,7 @@ extern int ...@@ -198,7 +198,7 @@ extern int
qla2x00_get_port_name(scsi_qla_host_t *, uint16_t, uint8_t *, uint8_t); qla2x00_get_port_name(scsi_qla_host_t *, uint16_t, uint8_t *, uint8_t);
extern uint8_t extern uint8_t
qla2x00_get_link_status(scsi_qla_host_t *, uint8_t, link_stat_t *, uint16_t *); qla2x00_get_link_status(scsi_qla_host_t *, uint16_t, link_stat_t *, uint16_t *);
extern int extern int
qla2x00_lip_reset(scsi_qla_host_t *); qla2x00_lip_reset(scsi_qla_host_t *);
......
...@@ -1607,7 +1607,7 @@ qla2x00_get_port_name(scsi_qla_host_t *ha, uint16_t loop_id, uint8_t *name, ...@@ -1607,7 +1607,7 @@ qla2x00_get_port_name(scsi_qla_host_t *ha, uint16_t loop_id, uint8_t *name,
* BIT_1 = mailbox error. * BIT_1 = mailbox error.
*/ */
uint8_t uint8_t
qla2x00_get_link_status(scsi_qla_host_t *ha, uint8_t loop_id, qla2x00_get_link_status(scsi_qla_host_t *ha, uint16_t loop_id,
link_stat_t *ret_buf, uint16_t *status) link_stat_t *ret_buf, uint16_t *status)
{ {
int rval; int rval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment