scsi: megasas: initialise local configuration data buffer
commit19dcd481acaef73ba700e8e50ad14dbd41a59b58
authorPrasad J Pandit <pjp@fedoraproject.org>
Wed, 25 May 2016 12:11:44 +0000 (25 17:41 +0530)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Aug 2016 19:29:51 +0000 (9 14:29 -0500)
tree30ffd6af936919f9c9580439bba472fa8acb34f2
parent1467b936d9e15dd41c6a471f99460eb9184d92e0
scsi: megasas: initialise local configuration data buffer

When reading MegaRAID SAS controller configuration via MegaRAID
Firmware Interface(MFI) commands, routine megasas_dcmd_cfg_read
uses an uninitialised local data buffer. Initialise this buffer
to avoid stack information leakage.

Reported-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <1464178304-12831-1-git-send-email-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d37af740730dbbb93960cd318e040372d04d6dcf)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/megasas.c