]> git.proxmox.com Git - mirror_qemu.git/commit
scsi: avoid an off-by-one error in megasas_mmio_write
authorPrasad J Pandit <pjp@fedoraproject.org>
Mon, 24 Apr 2017 12:06:34 +0000 (17:36 +0530)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 31 Aug 2017 16:51:16 +0000 (11:51 -0500)
commit0f590e798fe6a8bbff4c5b833f4e751dd98d7aa4
tree7db8c791b1387bca187ca37c37890a836cf257f5
parent3c6913263555bf43963d6ee8aa30b0ce1bd89b8d
scsi: avoid an off-by-one error in megasas_mmio_write

While reading magic sequence(MFI_SEQ) in megasas_mmio_write,
an off-by-one error could occur as 's->adp_reset' index is not
reset after reading the last sequence.

Reported-by: YY Z <bigbird475958471@gmail.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20170424120634.12268-1-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 24dfa9fa2f90a95ac33c7372de4f4f2c8a2c141f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/megasas.c