aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorJoy Gu <[email protected]>2021-10-12 12:18:33 -0700
committerMartin K. Petersen <[email protected]>2021-10-18 23:04:31 -0400
commit7fb223d0ad801f633c78cbe42b1d1b55f5d163ad (patch)
tree9bf53811ef933dee9516b04bd10dbd675300c93b /scripts/gcc-plugins/sancov_plugin.c
parent06634d5b6e923ed0d4772aba8def5a618f44c7fe (diff)
scsi: qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()
Commit 8c0eb596baa5 ("[SCSI] qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()"), intended to change: bsg_job->request->msgcode == FC_BSG_HST_ELS_NOLOGIN to: bsg_job->request->msgcode != FC_BSG_RPT_ELS but changed it to: bsg_job->request->msgcode == FC_BSG_RPT_ELS instead. Change the == to a != to avoid leaking the fcport structure or freeing unallocated memory. Link: https://lore.kernel.org/r/[email protected] Fixes: 8c0eb596baa5 ("[SCSI] qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()") Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Joy Gu <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions