]> git.ipfire.org Git - thirdparty/qemu.git/commit
scsi: mptconfig: fix misuse of MPTSAS_CONFIG_PACK
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 29 Aug 2016 09:35:37 +0000 (11:35 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 20 Sep 2016 16:03:33 +0000 (11:03 -0500)
commit0751a606c2be849cb9763f7c88578210d75884f3
tree2259ab96d2279c2af54eac7626058d896736c9c1
parent5e39560941f6b3ee61ea24c7a34e8fcf9e291fca
scsi: mptconfig: fix misuse of MPTSAS_CONFIG_PACK

These issues cause respectively a QEMU crash and a leak of 2 bytes of
stack.  They were discovered by VictorV of 360 Marvel Team.

Reported-by: Tom Victor <i-tangtianwen@360.cm>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 65a8e1f6413a0f6f79894da710b5d6d43361d27d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/mptconfig.c