aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2025-03-18 09:43:43 +0000
committerMartin K. Petersen <[email protected]>2025-04-03 13:46:03 +0000
commit72eea84a1092b50a10eeecfeba4b28ac9f1312ab (patch)
treeab84c161fed648a293a19dd4d6cf764fc7cbb219 /net/unix/garbage.c
parentscsi: ufs: core: Fix a race condition related to device commands (diff)
downloadkernel-72eea84a1092b50a10eeecfeba4b28ac9f1312ab.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Mike Christie <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions