]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qla2xxx: Clear options-flags while issuing stop-firmware mbx command.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Thu, 20 Oct 2011 17:14:16 +0000 (10:14 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:40:56 +0000 (17:40 -0700)
Not clearing the options flags in mbx1 could lead the firmware
into interpreting old data in mbx1 through mbx8.  This could
lead to inadvertent DMA read/write operations to stale memory.

JIRA Key: V2632FC-92

drivers/scsi/qla2xxx/qla_mbx.c

index 25cf9ffe0dfaaf1557c108825ecd781eb9419ac0..8899218de4185d49c7b5df062148523031a5d519 100644 (file)
@@ -2598,7 +2598,8 @@ qla2x00_stop_firmware(scsi_qla_host_t *vha)
        ql_dbg(ql_dbg_mbx, vha, 0x10a1, "Entered %s.\n", __func__);
 
        mcp->mb[0] = MBC_STOP_FIRMWARE;
-       mcp->out_mb = MBX_0;
+       mcp->mb[1] = 0;
+       mcp->out_mb = MBX_1|MBX_0;
        mcp->in_mb = MBX_0;
        mcp->tov = 5;
        mcp->flags = 0;