Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8454e988 authored by Adam Radford's avatar Adam Radford Committed by James Bottomley
Browse files

[SCSI] 3w-9xxx: scsi_dma_unmap fix



This patch fixes the following regression the occurred during the
scsi_dma_map()/unmap() changes:

3w-9xxx 0001:45:00.0: DMA-API: device driver tries to free DMA memory
it has not allocated [device address=0x0000000000000000] [size=36
bytes]

Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 5e43754f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1978,6 +1978,7 @@ static void twa_unmap_scsi_data(TW_Device_Extension *tw_dev, int request_id)
{
	struct scsi_cmnd *cmd = tw_dev->srb[request_id];

	if (cmd->SCp.phase == TW_PHASE_SGLIST)
		scsi_dma_unmap(cmd);
} /* End twa_unmap_scsi_data() */