summaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2013-07-29 14:48:39 +1000
committerAnthony Liguori <aliguori@us.ibm.com>2013-07-29 10:37:09 -0500
commitdbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03 (patch)
treee7789d1c9d46a88a3c38a24bdee106d70cf54df1 /hw/core
parentc04d6cfa3f17a335942f430a3d40e6041100f0c2 (diff)
downloadqemu-dbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03.tar.gz
spapr-vscsi: fix SOLNT bit in SRP_RSP
The driver calculates SOLNT bit from UCSOLNT and SCSOLNT bits from the request. The iu pointer has a type of srp_iu* which points to a union, so cmd and rsp overlap. As the vscsi_send_rsp function calls memset(iu, 0, sizeof(rsp)), it clears first 36 bytes of both cmd and rsp so cmd.sol_not is always zero at the moment of calculating rsp.sol_not. This fixes the bug. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Message-id: 1375073319-17488-1-git-send-email-aik@ozlabs.ru Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions