Re: [PATCH][next] scsi: lpfc: Fix memory leak on lcb_context

2020-11-23 Thread Martin K. Petersen
On Wed, 18 Nov 2020 14:13:14 +, Colin King wrote: > Currently there is an error return path that neglects to free the > allocation for lcb_context. Fix this by adding a new error free > exit path that kfree's lcb_context before returning. Use this new > kfree exit path in another exit error

Re: [PATCH][next] scsi: lpfc: Fix memory leak on lcb_context

2020-11-19 Thread Martin K. Petersen
Colin, > Currently there is an error return path that neglects to free the > allocation for lcb_context. Fix this by adding a new error free exit > path that kfree's lcb_context before returning. Use this new kfree > exit path in another exit error path that also kfree's the same > object,

Re: [PATCH][next] scsi: lpfc: Fix memory leak on lcb_context

2020-11-19 Thread James Smart
On 11/18/2020 6:13 AM, Colin King wrote: From: Colin Ian King Currently there is an error return path that neglects to free the allocation for lcb_context. Fix this by adding a new error free exit path that kfree's lcb_context before returning. Use this new kfree exit path in another exit

[PATCH][next] scsi: lpfc: Fix memory leak on lcb_context

2020-11-18 Thread Colin King
From: Colin Ian King Currently there is an error return path that neglects to free the allocation for lcb_context. Fix this by adding a new error free exit path that kfree's lcb_context before returning. Use this new kfree exit path in another exit error path that also kfree's the same object,