linux-stable/drivers/target/iscsi
ZouMingzhe a861790afa scsi: target: iscsi: Make sure the np under each tpg is unique
iscsit_tpg_check_network_portal() has nested for_each loops and is supposed
to return true when a match is found. However, the tpg loop will still
continue after existing the tpg_np loop. If this tpg_np is not the last the
match value will be changed.

Break the outer loop after finding a match and make sure the np under each
tpg is unique.

Link: https://lore.kernel.org/r/20220111054742.19582-1-mingzhe.zou@easystack.cn
Signed-off-by: ZouMingzhe <mingzhe.zou@easystack.cn>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-01-24 23:30:24 -05:00
..
cxgbit scsi: target: cxgbit: Enable Delayed ACK 2021-10-18 22:38:35 -04:00
iscsi_target.c Merge branch '5.12/scsi-fixes' into 5.13/scsi-staging 2021-04-12 21:41:54 -04:00
iscsi_target.h scsi: target: iscsi: Avoid in_interrupt() usage in iscsit_close_session() 2021-01-22 20:25:25 -05:00
iscsi_target_auth.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
iscsi_target_auth.h
iscsi_target_configfs.c scsi: target: iscsi: Replace tpg enable attr with ops.enable 2021-10-04 23:27:38 -04:00
iscsi_target_datain_values.c
iscsi_target_datain_values.h
iscsi_target_device.c
iscsi_target_device.h
iscsi_target_erl0.c scsi: target: iscsi: Avoid in_interrupt() usage in iscsit_close_session() 2021-01-22 20:25:25 -05:00
iscsi_target_erl0.h
iscsi_target_erl1.c scsi: target: iscsi: Remove redundant continue statement 2021-06-18 23:01:03 -04:00
iscsi_target_erl1.h
iscsi_target_erl2.c
iscsi_target_erl2.h
iscsi_target_login.c scsi: target: iscsi: Fix typo in comment 2021-01-20 21:37:35 -05:00
iscsi_target_login.h scsi: target: iscsi: Fix hang in iscsit_access_np() when getting tpg->np_login_sem 2020-09-02 21:08:22 -04:00
iscsi_target_nego.c scsi: target: iscsi: Drop unnecessary container_of() 2021-05-14 22:40:45 -04:00
iscsi_target_nego.h
iscsi_target_nodeattrib.c
iscsi_target_nodeattrib.h
iscsi_target_parameters.c scsi: target: iscsi: Switch to kmemdup_nul() 2021-05-10 13:24:03 -04:00
iscsi_target_parameters.h
iscsi_target_seq_pdu_list.c
iscsi_target_seq_pdu_list.h
iscsi_target_stat.c scsi: target: iscsi: Remove unused macro ISCSI_INST_LAST_FAILURE_TYPE 2021-03-09 23:47:18 -05:00
iscsi_target_tmr.c
iscsi_target_tmr.h
iscsi_target_tpg.c scsi: target: iscsi: Make sure the np under each tpg is unique 2022-01-24 23:30:24 -05:00
iscsi_target_tpg.h
iscsi_target_transport.c scsi: target: Make iscsit_register_transport() return void 2020-08-04 20:56:56 -04:00
iscsi_target_util.c scsi: target: iscsi: Remove unused macro PRINT_BUF 2021-03-09 23:47:18 -05:00
iscsi_target_util.h scsi: target: iscsi: Redo iscsit_check_session_usage_count() return code 2021-01-22 20:25:25 -05:00
Kconfig net: add sock_set_reuseaddr 2020-05-28 11:11:44 -07:00
Makefile