summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/storvsc_drv.c
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2022-12-30 17:29:34 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2022-12-30 17:29:34 +0100
commit6b1c374c45605504ed32e855c4e0f9b652a1978e (patch)
tree2c1b90e6ef3c5fde1c871df110d7a3f8a2e3117d /drivers/scsi/storvsc_drv.c
parentLinux 6.2-rc1 (diff)
parentscsi: ufs: core: WLUN suspend SSU/enter hibern8 fail recovery (diff)
downloadlinux-6b1c374c45605504ed32e855c4e0f9b652a1978e.tar.xz
linux-6b1c374c45605504ed32e855c4e0f9b652a1978e.zip
Merge branch '6.2/scsi-queue' into 6.2/scsi-fixes
Pull in remaining patches from the 6.2 queue. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/storvsc_drv.c')
-rw-r--r--drivers/scsi/storvsc_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index d7a84c0bfaeb..22705eb781b0 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1823,6 +1823,9 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd)
ret = storvsc_do_io(dev, cmd_request, get_cpu());
put_cpu();
+ if (ret)
+ scsi_dma_unmap(scmnd);
+
if (ret == -EAGAIN) {
/* no more space */
ret = SCSI_MLQUEUE_DEVICE_BUSY;