Re: Re: [PATCH] vhost/scsi: Fix improper cleanup in vhost_scsi_set_endpoint()

2025-01-17 Thread Haoran Zhang
t in the else-clause. Here is an alternative patch commit. Fixes: 4f7f46d32c98 ("tcm_vhost: Use vq->private_data to indicate if the endpoint is setup") Signed-off-by: Haoran Zhang --- drivers/vhost/scsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vhost/scsi.c b/drivers/vhost

[PATCH] vhost/scsi: Fix improper cleanup in vhost_scsi_set_endpoint()

2025-01-10 Thread Haoran Zhang
ree_vs_tpg` label to ensure proper cleanup. Fixes: 3f8ca2e115e55 ("vhost scsi: alloc cmds per vq instead of session") Signed-off-by: Haoran Zhang --- drivers/vhost/scsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c i