]> git.proxmox.com Git - mirror_qemu.git/commit
megasas: do not read sense length more than once from frame
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2017 15:18:39 +0000 (17:18 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 31 Aug 2017 16:51:16 +0000 (11:51 -0500)
commit20fd62d374659269977426cacd9a655c022ff774
treea2634bdf9f59e738749bc948877318d385e4776b
parent7442018a001c8e626a46d19488f470c1fdb162cf
megasas: do not read sense length 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 134550bf81a026e18cf58b81e2c2cceaf516f92e)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/megasas.c