[SCSI] qla2xxx: Pass first 64 bytes of MBX information when vendor commands fail.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
Giridhar Malavali 2010-09-03 15:20:49 -07:00 committed by James Bottomley
parent c9afb9a24d
commit 6dbdda4d59
1 changed files with 2 additions and 3 deletions

View File

@ -3825,8 +3825,6 @@ qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq,
/* Copy mailbox information */ /* Copy mailbox information */
memcpy( mresp, mcp->mb, 64); memcpy( mresp, mcp->mb, 64);
mresp[3] = mcp->mb[18];
mresp[4] = mcp->mb[19];
return rval; return rval;
} }
@ -3887,9 +3885,10 @@ qla2x00_echo_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq,
} }
/* Copy mailbox information */ /* Copy mailbox information */
memcpy( mresp, mcp->mb, 32); memcpy(mresp, mcp->mb, 64);
return rval; return rval;
} }
int int
qla84xx_reset_chip(scsi_qla_host_t *ha, uint16_t enable_diagnostic) qla84xx_reset_chip(scsi_qla_host_t *ha, uint16_t enable_diagnostic)
{ {