diff options
| author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2013-07-29 14:48:39 +1000 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-07-29 10:37:09 -0500 |
| commit | dbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03 (patch) | |
| tree | e7789d1c9d46a88a3c38a24bdee106d70cf54df1 /qdev-monitor.c | |
| parent | c04d6cfa3f17a335942f430a3d40e6041100f0c2 (diff) | |
| download | focaccia-qemu-dbd94f8e4a0a3c4164af7be5bbf6d4e907f3cc03.tar.gz focaccia-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 'qdev-monitor.c')
0 files changed, 0 insertions, 0 deletions