projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06fb631
)
tcm_fc: Use transport_generic_free_cmd for ft_sess_put in ft_send_tm
author
Andy Grover
<agrover@redhat.com>
Thu, 19 Jan 2012 21:39:20 +0000
(13:39 -0800)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Sat, 25 Feb 2012 22:37:48 +0000
(14:37 -0800)
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>
drivers/target/tcm_fc/tfc_cmd.c
patch
|
blob
|
history
diff --git
a/drivers/target/tcm_fc/tfc_cmd.c
b/drivers/target/tcm_fc/tfc_cmd.c
index 3926f4a66cb68b03a045773996f9d34b57cd8f34..a08119f5703916e2b18b38feb44b2ab6394afd3b 100644
(file)
--- 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;
}