From: Roland Dreier Date: Mon, 14 Mar 2011 11:05:55 +0000 (-0700) Subject: [SCSI] target: Fix memory leak on error path in pscsi_alloc_task X-Git-Tag: v2.6.39-rc1~52^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fc1858a42663248d5b362edc313786e0be7a639;p=pandora-kernel.git [SCSI] target: Fix memory leak on error path in pscsi_alloc_task If allocation of pt->pscsi_cdb fails, we need to free the just-allocated pt or else it will be leaked. Signed-off-by: Roland Dreier Signed-off-by: Nicholas A. Bellinger Signed-off-by: James Bottomley --- Reading git-diff-tree failed