Files
linux/drivers/scsi
Li Lingfeng 7bdc689214 scsi: Revert "scsi: iscsi: Fix HW conn removal use after free"
This reverts commit c577ab7ba5.

The invocation of iscsi_put_conn() in iscsi_iter_destory_conn_fn() is
used to free the initial reference counter of iscsi_cls_conn.  For
non-qla4xxx cases, the ->destroy_conn() callback (e.g.,
iscsi_conn_teardown) will call iscsi_remove_conn() and iscsi_put_conn()
to remove the connection from the children list of session and free the
connection at last.  However for qla4xxx, it is not the case. The
->destroy_conn() callback of qla4xxx will keep the connection in the
session conn_list and doesn't use iscsi_put_conn() to free the initial
reference counter. Therefore, it seems necessary to keep the
iscsi_put_conn() in the iscsi_iter_destroy_conn_fn(), otherwise, there
will be memory leak problem.

Link: https://lore.kernel.org/all/88334658-072b-4b90-a949-9c74ef93cfd1@huawei.com/
Fixes: c577ab7ba5 ("scsi: iscsi: Fix HW conn removal use after free")
Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
Link: https://lore.kernel.org/r/20250715073926.3529456-1-lilingfeng3@huawei.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2025-07-24 21:21:00 -04:00
..
2025-07-14 21:10:30 -04:00
2025-06-09 21:30:14 -04:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-12-09 21:59:52 -05:00
2024-03-10 18:15:48 -04:00
2024-12-09 21:59:52 -05:00
2025-01-02 13:42:35 -05:00
2024-12-09 21:59:52 -05:00
2025-05-05 13:22:39 -06:00
2024-12-09 21:59:52 -05:00
2025-05-05 13:22:39 -06:00
2025-02-03 18:04:55 -05:00
2024-08-12 22:05:50 -04:00
2024-08-12 22:05:50 -04:00
2024-12-09 21:59:52 -05:00
2025-05-05 13:22:39 -06:00
2024-06-20 15:19:17 -06:00
2024-12-09 21:59:52 -05:00