scsi: mptconfig: fix misuse of MPTSAS_CONFIG_PACK
commit65a8e1f6413a0f6f79894da710b5d6d43361d27d
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 29 Aug 2016 09:35:37 +0000 (29 11:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2016 17:08:46 +0000 (13 19:08 +0200)
tree07f052999d73deb9237c544e8daaecbbbeb113dd
parentcf2bce203a45d7437029d108357fb23fea0967b6
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>
hw/scsi/mptconfig.c