Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1321f71 authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger
Browse files

tcm_fc: Use transport_generic_free_cmd for ft_sess_put in ft_send_tm



transport_generic_free_cmd will end up calling ft_sess_put, so it should
work just the same.

Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Cc: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 06fb6313
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -408,7 +408,7 @@ static void ft_send_tm(struct ft_cmd *cmd)
		sess = cmd->sess;
		transport_send_check_condition_and_sense(&cmd->se_cmd,
			cmd->se_cmd.scsi_sense_reason, 0);
		ft_sess_put(sess);
		transport_generic_free_cmd(&cmd->se_cmd, 0);
		return;
	}