1
0
Fork 0

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>
wifi-calibration
Dan Carpenter 2013-06-24 18:46:57 +03:00 committed by Nicholas Bellinger
parent 3e23d025bc
commit 4f45d320ba
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
/*