projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fc6a64
)
iscsi-target: fix iscsi cmd leak
author
Varun Prakash
<varun@chelsio.com>
Thu, 15 Sep 2016 15:50:11 +0000
(21:20 +0530)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Thu, 20 Oct 2016 04:22:31 +0000
(21:22 -0700)
If iscsi-target receives NOP OUT with ITT and TTT
set to 0xffffffff it allocates iscsi_cmd but
does not free the cmd, so free iscsi_cmd in this case.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
patch
|
blob
|
history
diff --git
a/drivers/target/iscsi/iscsi_target.c
b/drivers/target/iscsi/iscsi_target.c
index 1aaf1f3148b2c41cbbad0f73db340ce88267fe15..b7d747e92c7abf589e35154b25482a9dedb57118 100644
(file)
--- a/
drivers/target/iscsi/iscsi_target.c
+++ b/
drivers/target/iscsi/iscsi_target.c
@@
-1804,6
+1804,10
@@
int iscsit_process_nop_out(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
* Otherwise, initiator is not expecting a NOPIN is response.
* Just ignore for now.
*/
+
+ if (cmd)
+ iscsit_free_cmd(cmd, false);
+
return 0;
}
EXPORT_SYMBOL(iscsit_process_nop_out);