summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2012-01-19 13:39:20 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2012-02-25 14:37:48 -0800
commita1321f71e87930579afc4a4029cce128c23f3fd3 (patch)
treee0b7ac436500fc74462db31820ab9d1451522510 /drivers/target/tcm_fc
parent06fb6313d975c144850a3381ffa792c752d5473d (diff)
downloadlinux-a1321f71e87930579afc4a4029cce128c23f3fd3.tar.bz2
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: Andy Grover <agrover@redhat.com> Cc: Kiran Patil <kiran.patil@intel.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc')
-rw-r--r--drivers/target/tcm_fc/tfc_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c
index 3926f4a66cb6..a08119f57039 100644
--- a/drivers/target/tcm_fc/tfc_cmd.c
+++ b/drivers/target/tcm_fc/tfc_cmd.c
@@ -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;
}