]> git.proxmox.com Git - mirror_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>
Wed, 2 Nov 2016 21:41:35 +0000 (16:41 -0500)
commit8342e1240b70bbf72813a48c1475b025da87b017
tree305e1b71a2e67416701d36fdd82e1dd97c73c570
parent0b6ab25367c1dde9ecbd1bc331795fee0554bd54
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