diff options
author | Himanshu Madhani | 2019-07-26 09:07:26 -0700 |
---|---|---|
committer | Martin K. Petersen | 2019-07-30 16:12:01 -0400 |
commit | 5d328de64d89400dcf9911125844d8adc0db697f (patch) | |
tree | 3fe58c55079a6a00d8a1059eed936dc3390c01a2 /drivers/scsi/qla2xxx/qla_gs.c | |
parent | 8f55c307ab577af74efab066ba1e45b0e51e4bae (diff) |
scsi: qla2xxx: Fix DMA unmap leak
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>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gs.c')
0 files changed, 0 insertions, 0 deletions