scsi: mptconfig: fix an assert expression
commitcf2bce203a45d7437029d108357fb23fea0967b6
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 31 Aug 2016 12:06:07 +0000 (31 17:36 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2016 17:08:46 +0000 (13 19:08 +0200)
treeef7aeb74c35486cc029ef5a656a6774106a8e359
parent7f61f4690dd153be98900a2a508b88989e692753
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>
hw/scsi/mptconfig.c