diff options
author | Andy Grover <agrover@redhat.com> | 2012-01-19 16:39:20 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-25 17:37:48 -0500 |
commit | a1321f71e87930579afc4a4029cce128c23f3fd3 (patch) | |
tree | e0b7ac436500fc74462db31820ab9d1451522510 /drivers/target/tcm_fc/tfc_cmd.c | |
parent | 06fb6313d975c144850a3381ffa792c752d5473d (diff) |
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/tfc_cmd.c')
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 2 |
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) | |||
408 | sess = cmd->sess; | 408 | sess = cmd->sess; |
409 | transport_send_check_condition_and_sense(&cmd->se_cmd, | 409 | transport_send_check_condition_and_sense(&cmd->se_cmd, |
410 | cmd->se_cmd.scsi_sense_reason, 0); | 410 | cmd->se_cmd.scsi_sense_reason, 0); |
411 | ft_sess_put(sess); | 411 | transport_generic_free_cmd(&cmd->se_cmd, 0); |
412 | return; | 412 | return; |
413 | } | 413 | } |
414 | 414 | ||