Skip to content
Snippets Groups Projects
Commit 7ea206cf authored by Asias He's avatar Asias He Committed by Nicholas Bellinger
Browse files

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: default avatarAsias He <asias@redhat.com>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent f6da51c3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment