diff options
author | Alexey Kardashevskiy | 2013-07-29 06:48:39 +0200 |
---|---|---|
committer | Anthony Liguori | 2013-07-29 17:37:09 +0200 |
commit | dbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03 (patch) | |
tree | e7789d1c9d46a88a3c38a24bdee106d70cf54df1 /hw/core/qdev-properties.c | |
parent | xics: rename types to be sane and follow coding style (diff) | |
download | qemu-dbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03.tar.gz qemu-dbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03.tar.xz qemu-dbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03.zip |
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/qdev-properties.c')
0 files changed, 0 insertions, 0 deletions