]> git.ipfire.org Git - thirdparty/qemu.git/commit
scsi: mptsas: fix the wrong reading size in fetch request
authorLi Qiang <liq3ea@gmail.com>
Tue, 14 Mar 2017 10:56:20 +0000 (03:56 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:42 +0000 (12:10 -0500)
commitba9c51d225d9f43714193ed700a6ac5d4949ff0a
tree56c7f69312ab29104a21be9be3c355e5ae62e5c6
parent495756ef9d4b3a54b1b41928f210d9b217c8a923
scsi: mptsas: fix the wrong reading size in fetch request

When fetching request, it should read sizeof(*hdr), not the
pointer hdr.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-Id: <1489488980-130668-1-git-send-email-liqiang6-s@360.cn>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit b01a2d07c963e96dbd151f0db1eaa06f273acf34)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/mptsas.c