diff options
| author | Bill Kuzeja <[email protected]> | 2019-08-14 10:24:41 -0400 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-08-14 21:50:51 -0400 |
| commit | 26fa656e9a0cbccddf7db132ea020d2169dbe46e (patch) | |
| tree | 99e68a8bc5a1e8f04536039b94b7b2799073c986 /tools/lib/traceevent/plugins/plugin_function.c | |
| parent | a86c71ba3022331f79662d7f12d1b25188c7e377 (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 <[email protected]>
Acked-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions