megasas: do not read DCMD opcode more than once from frame
commit5104fac8539eaf155fc6de93e164be43e1e62242
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2017 15:18:23 +0000 (1 17:18 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Jun 2017 09:04:05 +0000 (15 11:04 +0200)
treeb93b67c0be82f275b37e078e66288bcf1adc8638
parent24c0c77af515acbf0f9705e8096f33ef24d37430
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>
hw/scsi/megasas.c