Skip to content
Commit 0f590e79 authored by Prasad J Pandit's avatar Prasad J Pandit Committed by Michael Roth
Browse files

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: default avatarYY Z <bigbird475958471@gmail.com>
Signed-off-by: default avatarPrasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20170424120634.12268-1-ppandit@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 24dfa9fa)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 3c691326
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment