commit | 7ea206cf3b06704cf2bfc9c9c395094b24dc44a2 | [log] [tgz] |
---|---|---|
author | Asias He <asias@redhat.com> | Wed Apr 10 15:06:14 2013 +0800 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Thu Apr 11 01:48:27 2013 -0700 |
tree | a270c2a06611ddd9d062ef01ed5df54fb911e752 | |
parent | f6da51c3ef07c593a410551af4cad093e2fbe755 [diff] |
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 <asias@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>