[PATCH] vhost: fix VDUSE devices registration

Maxime Coquelin maxime.coquelin at redhat.com
Fri Feb 7 15:12:22 CET 2025



On 1/31/25 2:09 PM, Maxime Coquelin wrote:
> This patch fixes a regression in vhost_driver_register()
> causing VDUSE devices registration to fail systematically
> because the return value was initialized to -1 and not
> changed later on for this type of devices.
> 
> Fixes: 4d2aa150769b ("vhost: remove check around mutex init")
> 
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
>   lib/vhost/socket.c | 10 +++-------
>   1 file changed, 3 insertions(+), 7 deletions(-)
> 

Applied to next-virtio/for-next-net.

Thanks,
Maxime




More information about the dev mailing list