]> git.baikalelectronics.ru Git - kernel.git/commit
tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq
authorAsias He <asias@redhat.com>
Wed, 10 Apr 2013 07:06:14 +0000 (15:06 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 11 Apr 2013 08:48:27 +0000 (01:48 -0700)
commit20b72b11a3f798f0750bad1c40fe22d4904d1e74
treea270c2a06611ddd9d062ef01ed5df54fb911e752
parent10a2cb93eb3dfecc8db1dfefaadb745ef8ec2994
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>
drivers/vhost/tcm_vhost.c