Skip to content

Commit a5187f5

Browse files
author
Herton R. Krzesinski
committed
Merge: scsi: storvsc: Fix swiotlb bounce buffer leak in confidential VM
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1887 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2150660 - scsi: storvsc: Fix swiotlb bounce buffer leak in confidential VM [Emanuele Giuseppe Esposito] Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Approved-by: Mohamed Gamal Morsy <mgamal@redhat.com> Approved-by: Cathy Avery <cavery@redhat.com> Approved-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 29c902d + bb77819 commit a5187f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/scsi/storvsc_drv.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,9 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd)
18281828
ret = storvsc_do_io(dev, cmd_request, get_cpu());
18291829
put_cpu();
18301830

1831+
if (ret)
1832+
scsi_dma_unmap(scmnd);
1833+
18311834
if (ret == -EAGAIN) {
18321835
/* no more space */
18331836
ret = SCSI_MLQUEUE_DEVICE_BUSY;

0 commit comments

Comments
 (0)