Re: [PATCH] qla2xxx: Fix gnl.l memory leak on adapter init failure

2019-08-14 Thread Himanshu Madhani
On 7/16/19, 1:57 PM, "linux-scsi-ow...@vger.kernel.org on behalf of Bill Kuzeja" wrote: 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 f

[PATCH] qla2xxx: Fix gnl.l memory leak on adapter init failure

2019-07-16 Thread Bill Kuzeja
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