]> git.ipfire.org Git - thirdparty/qemu.git/commit
scsi: mptconfig: fix an assert expression
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 31 Aug 2016 12:06:07 +0000 (17:36 +0530)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 21:41:35 +0000 (16:41 -0500)
commit0b6ab25367c1dde9ecbd1bc331795fee0554bd54
tree795f7acc141bdd45f634b6806ff4946a1746eb7b
parent742886578d76e088d7fffdfce3bd2f4001e30558
scsi: mptconfig: fix an assert expression

When LSI SAS1068 Host Bus emulator builds configuration page
headers, mptsas_config_pack() should assert that the size
fits in a byte.  However, the size is expressed in 32-bit
units, so up to 1020 bytes fit.  The assertion was only
allowing replies up to 252 bytes, so fix it.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <1472645167-30765-2-git-send-email-ppandit@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit cf2bce203a45d7437029d108357fb23fea0967b6)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/mptconfig.c