]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iscsi-target: Fix ISCSI_OP_SCSI_TMFUNC handling for iser
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 3 Jul 2013 10:11:48 +0000 (03:11 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 7 Jul 2013 05:01:23 +0000 (22:01 -0700)
commit186a9647019587b3784694894c4d136fd00cfd7b
tree47864da1726666d59bfa20a9b346b06d4b948218
parent561bf15892375597ee59d473a704a3e634c4f311
iscsi-target: Fix ISCSI_OP_SCSI_TMFUNC handling for iser

This patch adds target_get_sess_cmd reference counting for
iscsit_handle_task_mgt_cmd(), and adds a target_put_sess_cmd()
for the failure case.

It also fixes a bug where ISCSI_OP_SCSI_TMFUNC type commands
where leaking iscsi_cmd->i_conn_node and eventually triggering
an OOPs during struct isert_conn shutdown.

Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target.c