]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Zero undefined mailbox IN registers
authorBikash Hazarika <bhazarika@marvell.com>
Wed, 13 Jul 2022 05:20:38 +0000 (22:20 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Jul 2022 02:33:03 +0000 (22:33 -0400)
commit104f9b9fd9af1f732e810d999593931e2c9551f0
tree99c00eaf4d6e62916fc324785b562d4543bfa7a8
parent94693692ae574ef7f6795749250595490abf0fde
scsi: qla2xxx: Zero undefined mailbox IN registers

While requesting a new mailbox command, driver does not write any data to
unused registers.  Initialize the unused register value to zero while
requesting a new mailbox command to prevent stale entry access by firmware.

Link: https://lore.kernel.org/r/20220713052045.10683-4-njavali@marvell.com
Cc: stable@vger.kernel.org
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bikash Hazarika <bhazarika@marvell.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mbx.c