diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-06-24 18:46:57 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-07-03 19:44:34 -0700 |
commit | 4f45d320ba97ad2f1107a56e8b2af0dd7e764502 (patch) | |
tree | b2cac759fe9b6d390fb91ae71a952232811b301f /drivers/target/iscsi | |
parent | 3e23d025bc19940979c4f0c67a39d64af7c893c6 (diff) | |
download | linux-4f45d320ba97ad2f1107a56e8b2af0dd7e764502.tar.bz2 |
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/iscsi')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 1 |
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; } /* |