From: Dan Carpenter Date: Sun, 14 Aug 2011 05:35:00 +0000 (-0700) Subject: iscsi-target: Fix iscsit_allocate_se_cmd_for_tmr failure path bugs X-Git-Tag: v3.1-rc4~43^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba7736696341ad4253125055c0c85aa9f42959a0;p=pandora-kernel.git iscsi-target: Fix iscsit_allocate_se_cmd_for_tmr failure path bugs This patch fixes two bugs in allocation failure handling in iscsit_allocate_se_cmd_for_tmr(): This first reported by DanC is a free-after call to transport_free_se_cmd(), this patch drops the transport_free_se_cmd() call all together, as iscsit_release_cmd() will release existing allocations as expected. The second is a bug where iscsi_cmd_t was being leaked on a cmd->tmr_req allocation failure, so make this jump to iscsit_release_cmd() as well. Signed-off-by: Dan Carpenter Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed