summaryrefslogtreecommitdiff
path: root/drivers/target
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-06-24 18:46:57 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2013-07-03 19:44:34 -0700
commit4f45d320ba97ad2f1107a56e8b2af0dd7e764502 (patch)
treeb2cac759fe9b6d390fb91ae71a952232811b301f /drivers/target
parent3e23d025bc19940979c4f0c67a39d64af7c893c6 (diff)
iscsi-target: missing kfree() on error path
Fix-up breakage in iscsit_build_sendtargets_response() from v3.11 changes, and free "payload" before returning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/iscsi/iscsi_target.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index dc2c0565736d..19a31f9bb7d5 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -3421,6 +3421,7 @@ static int iscsit_build_sendtargets_response(struct iscsi_cmd *cmd)
if (!text_ptr) {
pr_err("Unable to locate '=' string in text_in:"
" %s\n", text_in);
+ kfree(payload);
return -EINVAL;
}
/*