Skip to content

Commit fa0926d

Browse files
avasquez01James Bottomley
authored andcommitted
[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>
1 parent 6c2f527 commit fa0926d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_mbx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,7 @@ qla2x00_enable_fce_trace(scsi_qla_host_t *ha, dma_addr_t fce_dma,
25082508
if (mb)
25092509
memcpy(mb, mcp->mb, 8 * sizeof(*mb));
25102510
if (dwords)
2511-
*dwords = mcp->mb[6];
2511+
*dwords = buffers;
25122512
}
25132513

25142514
return rval;

0 commit comments

Comments
 (0)