From: Asias He Date: Wed, 10 Apr 2013 07:06:14 +0000 (+0800) Subject: tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq X-Git-Tag: v3.9-rc7~13^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ea206cf3b06704cf2bfc9c9c395094b24dc44a2;p=pandora-kernel.git tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq If we fail to submit the allocated tv_vmd to tcm_vhost_submission_work, we will leak the tv_vmd. Free tv_vmd on fail path. Signed-off-by: Asias He Acked-by: Michael S. Tsirkin Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed