SCSI: Minor cleanups.

This commit is contained in:
Augustin Cavalier 2024-11-04 15:08:06 -05:00
parent 53728117bc
commit c16f375b92
2 changed files with 2 additions and 1 deletions

View File

@ -465,6 +465,7 @@ scsi_release_dma_buffer(scsi_ccb *request)
release_sem(device->dma_buffer_owner);
request->buffered = false;
request->dma_buffer = NULL;
}

View File

@ -156,7 +156,7 @@ cleanup_tmp_sg(scsi_ccb *ccb)
ccb, ccb->data, ccb->data_length);
res = unlock_memory(ccb->data, ccb->data_length, B_DMA_IO
| ((ccb->flags & SCSI_DIR_MASK) == SCSI_DIR_IN ? B_READ_DEVICE : 0));
| ((ccb->flags & SCSI_DIR_MASK) == SCSI_DIR_IN ? B_READ_DEVICE : 0));
if (res != B_OK) {
SHOW_FLOW0(3, "Cannot unlock previously locked memory!");