On Wed, 10/08 11:37, Paolo Bonzini wrote:
> scsi_req_continue can complete the request and cause the VirtIOSCSIReq
> to be freed. Fetch req->sreq just once to avoid the bug.
>
> Reported-by: Richard Jones
> Tested-by: Richard Jones
> Signed-off-by: Paolo Bonzini
> ---
> hw/scsi/virtio-scsi.c
scsi_req_continue can complete the request and cause the VirtIOSCSIReq
to be freed. Fetch req->sreq just once to avoid the bug.
Reported-by: Richard Jones
Tested-by: Richard Jones
Signed-off-by: Paolo Bonzini
---
hw/scsi/virtio-scsi.c | 9 +
1 file changed, 5 insertions(+), 4 deletion