summaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_util.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-09-15 01:02:28 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-09-15 01:02:28 +0200
commit1db3706b05b11abcf2673ffbed5ad43b4c90ed11 (patch)
tree09fa867d9d9db6ed475eaa889da143603441e1a6 /drivers/target/iscsi/iscsi_target_util.c
parentMerge branch 'atag_offset' of git://git.linaro.org/people/nico/linux into dev... (diff)
parentARM: zImage: prevent constant copy+rebuild of lib1funcs.S (diff)
downloadlinux-1db3706b05b11abcf2673ffbed5ad43b4c90ed11.tar.xz
linux-1db3706b05b11abcf2673ffbed5ad43b4c90ed11.zip
Merge branch 'zImage_DTB_append' of git://git.linaro.org/people/nico/linux into devel-stable
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_util.c')
-rw-r--r--drivers/target/iscsi/iscsi_target_util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/target/iscsi/iscsi_target_util.c b/drivers/target/iscsi/iscsi_target_util.c
index a1acb0167902..a0d23bc0fc98 100644
--- a/drivers/target/iscsi/iscsi_target_util.c
+++ b/drivers/target/iscsi/iscsi_target_util.c
@@ -243,7 +243,7 @@ struct iscsi_cmd *iscsit_allocate_se_cmd_for_tmr(
if (!cmd->tmr_req) {
pr_err("Unable to allocate memory for"
" Task Management command!\n");
- return NULL;
+ goto out;
}
/*
* TASK_REASSIGN for ERL=2 / connection stays inside of
@@ -298,8 +298,6 @@ struct iscsi_cmd *iscsit_allocate_se_cmd_for_tmr(
return cmd;
out:
iscsit_release_cmd(cmd);
- if (se_cmd)
- transport_free_se_cmd(se_cmd);
return NULL;
}