Files
linux/drivers
Himanshu Madhani 44b0412aa1 scsi: qla2xxx: Fix DMA unmap leak
[ Upstream commit 5d328de64d ]

With debug kernel we see following wanings indicating memory leak.

[28809.523959] WARNING: CPU: 3 PID: 6790 at lib/dma-debug.c:978
dma_debug_device_change+0x166/0x1d0
[28809.523964] pci 0000:0c:00.6: DMA-API: device driver has pending DMA
allocations while released from device [count=5]
[28809.523964] One of leaked entries details: [device
address=0x00000002aefe4000] [size=8208 bytes] [mapped with DMA_BIDIRECTIONAL]
[mapped as coherent]

Fix this by unmapping DMA memory.

Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-15 16:17:10 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-15 16:15:25 +09:00
2023-05-15 10:39:04 +09:00
2023-05-15 12:46:28 +09:00
2023-05-15 16:16:06 +09:00
2023-05-15 16:08:22 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 16:17:10 +09:00
2023-05-15 16:15:34 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 14:29:17 +09:00
2023-05-15 16:16:44 +09:00
2023-05-15 13:00:07 +09:00