From: Andy Grover Date: Thu, 19 Jan 2012 21:39:20 +0000 (-0800) Subject: tcm_fc: Use transport_generic_free_cmd for ft_sess_put in ft_send_tm X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1321f71e87930579afc4a4029cce128c23f3fd3;p=linux-beck.git 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 Cc: Kiran Patil Signed-off-by: Nicholas Bellinger --- 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; }