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

Commit c2dd32e0 authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by James Bottomley
Browse files

[SCSI] hpsa: fix dma unmap error in hpsa_passthru_ioctl

parent 38553564
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2580,6 +2580,7 @@ static int hpsa_passthru_ioctl(struct ctlr_info *h, void __user *argp)
		c->SG[0].Ext = 0; /* we are not chaining*/
	}
	hpsa_scsi_do_simple_cmd_core(h, c);
	if (iocommand.buf_size > 0)
		hpsa_pci_unmap(h->pdev, c, 1, PCI_DMA_BIDIRECTIONAL);
	check_ioctl_unit_attention(h, c);