diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2008-05-13 01:21:12 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-05-15 11:39:29 -0400 |
commit | fa0926df0f5cf63b998a79127519bdcfe9bf05f7 (patch) | |
tree | 5dabc654d54f7dc6ff0d669210677bb44232eb06 /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | 6c2f527cb84cbd7d2d8a668c979e70bf78980ccc (diff) |
[SCSI] qla2xxx: Don't depend on mailbox return values while enabling FCE tracing.
Recent firmwares no longer return the 'number of buffers' in
mailbox6. The original code may result in a potential panic
during a FW-dump process due to the driver misinterpreting the
size of the allocated buffer.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 3800876f96c3..bf3a6f0b8ba2 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -2508,7 +2508,7 @@ qla2x00_enable_fce_trace(scsi_qla_host_t *ha, dma_addr_t fce_dma, | |||
2508 | if (mb) | 2508 | if (mb) |
2509 | memcpy(mb, mcp->mb, 8 * sizeof(*mb)); | 2509 | memcpy(mb, mcp->mb, 8 * sizeof(*mb)); |
2510 | if (dwords) | 2510 | if (dwords) |
2511 | *dwords = mcp->mb[6]; | 2511 | *dwords = buffers; |
2512 | } | 2512 | } |
2513 | 2513 | ||
2514 | return rval; | 2514 | return rval; |