summaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2025-03-18 17:43:43 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2025-04-03 09:46:03 -0400
commit72eea84a1092b50a10eeecfeba4b28ac9f1312ab (patch)
treeab84c161fed648a293a19dd4d6cf764fc7cbb219 /rust/helpers/helpers.c
parent20b97acc4cafa2be8ac91a777de135110e58a90b (diff)
downloadlinux-stable-72eea84a1092b50a10eeecfeba4b28ac9f1312ab.tar.gz
linux-stable-72eea84a1092b50a10eeecfeba4b28ac9f1312ab.tar.bz2
linux-stable-72eea84a1092b50a10eeecfeba4b28ac9f1312ab.zip
scsi: iscsi: Fix missing scsi_host_put() in error path
Add goto to ensure scsi_host_put() is called in all error paths of iscsi_set_host_param() function. This fixes a potential memory leak when strlen() check fails. Fixes: ce51c8170084 ("scsi: iscsi: Add strlen() check in iscsi_if_set{_host}_param()") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Link: https://lore.kernel.org/r/20250318094344.91776-1-linmq006@gmail.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions