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

Commit 45c88326 authored by Karthikeyan Ramasubramanian's avatar Karthikeyan Ramasubramanian
Browse files

spi: spi_qsd: Use the right device for dma_unmap_single operation



The unmap operation of a dma bounce buffer is performed using an incorrect
device compared to the map operation. This leads to a leaked bounce buffer
dma map.

Fix the device usage during the unmap operation.

CRs-Fixed: 1104864
Change-Id: I7da2484ce1f070a4545b9110e3602b4f39d7afdc
Signed-off-by: default avatarKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
parent 2aa89ab3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1118,7 +1118,7 @@ static void msm_spi_bam_unmap_buffers(struct msm_spi *dd)
	void *tx_buf, *rx_buf;
	u32  tx_len, rx_len;

	dev = &dd->spi->dev;
	dev = dd->dev;
	xfr = dd->cur_transfer;

	tx_buf = (void *)xfr->tx_buf;