projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tcm_fc: Fix fc_exch memory leak in ft_send_resp_status
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
target
/
tcm_fc
/
tfc_cmd.c
diff --git
a/drivers/target/tcm_fc/tfc_cmd.c
b/drivers/target/tcm_fc/tfc_cmd.c
index b831461156bf08ad093cee8928bf78c3d08e9684..62dec9715ce57a37643e18d26caad8751349adab 100644
(file)
--- a/
drivers/target/tcm_fc/tfc_cmd.c
+++ b/
drivers/target/tcm_fc/tfc_cmd.c
@@
-315,10
+315,12
@@
static void ft_send_resp_status(struct fc_lport *lport,
fc_fill_reply_hdr(fp, rx_fp, FC_RCTL_DD_CMD_STATUS, 0);
sp = fr_seq(fp);
- if (sp)
+ if (sp)
{
lport->tt.seq_send(lport, sp, fp);
- else
+ lport->tt.exch_done(sp);
+ } else {
lport->tt.frame_send(lport, fp);
+ }
}
/*