projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e23d02
)
iscsi-target: missing kfree() on error path
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 24 Jun 2013 15:46:57 +0000
(18:46 +0300)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Thu, 4 Jul 2013 02:44:34 +0000
(19:44 -0700)
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>
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
dc2c056
..
19a31f9
100644
(file)
--- 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;
}
/*