aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c
diff options
context:
space:
mode:
authorBill Kuzeja <William.Kuzeja@stratus.com>2019-08-14 10:24:41 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2019-08-14 21:50:51 -0400
commit26fa656e9a0cbccddf7db132ea020d2169dbe46e (patch)
tree99e68a8bc5a1e8f04536039b94b7b2799073c986 /drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c
parenta86c71ba3022331f79662d7f12d1b25188c7e377 (diff)
scsi: qla2xxx: Fix gnl.l memory leak on adapter init failure
If HBA initialization fails unexpectedly (exiting via probe_failed:), we may fail to free vha->gnl.l. So that we don't attempt to double free, set this pointer to NULL after a free and check for NULL at probe_failed: so we know whether or not to call dma_free_coherent. Signed-off-by: Bill Kuzeja <william.kuzeja@stratus.com> Acked-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c')
0 files changed, 0 insertions, 0 deletions