diff --git a/src/add-ons/kernel/busses/scsi/virtio/VirtioSCSIRequest.cpp b/src/add-ons/kernel/busses/scsi/virtio/VirtioSCSIRequest.cpp index 079a3f4262..ff4244b6b3 100644 --- a/src/add-ons/kernel/busses/scsi/virtio/VirtioSCSIRequest.cpp +++ b/src/add-ons/kernel/busses/scsi/virtio/VirtioSCSIRequest.cpp @@ -126,12 +126,13 @@ VirtioSCSIRequest::Finish(bool resubmit) } } + scsi_ccb *ccb = fCCB; mutex_unlock(&fLock); if (resubmit) - gSCSI->resubmit(fCCB); + gSCSI->resubmit(ccb); else - gSCSI->finished(fCCB, 1); + gSCSI->finished(ccb, 1); TRACE("VirtioSCSIRequest::Finish() done\n");