]> git.proxmox.com Git - mirror_qemu.git/commit
megasas: do not read DCMD opcode more than once from frame
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2017 15:18:23 +0000 (17:18 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 31 Aug 2017 16:51:16 +0000 (11:51 -0500)
commit50b93533153b1e49aa26e289a49d3c9773e189f5
treeba4b5ced44df30bfe1ae1b0397f60f130b1047be
parentd016071ca577e32ea9ebc0ed6fa39c8b22cb6788
megasas: do not read DCMD opcode more than once from frame

Avoid TOC-TOU bugs by storing the DCMD opcode in the MegasasCmd

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 5104fac8539eaf155fc6de93e164be43e1e62242)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/megasas.c