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

Avoid TOC-TOU bugs depending on how the compiler behaves.

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