mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
iscsi-target: fix iscsi cmd leak
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>
This commit is contained in:
parent
3fc6a642e4
commit
1a40f0a36f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue