]> git.proxmox.com Git - mirror_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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Mar 2017 12:26:37 +0000 (13:26 +0100)
commitb01a2d07c963e96dbd151f0db1eaa06f273acf34
tree902872302f2390b6075260c38e46cfeca89f74cb
parentbd5d983fa87e5a0230a2bc6a54972f53e39ad978
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>
hw/scsi/mptsas.c