On Mon, 16 May 2022 at 16:57, Stefan Hajnoczi <stefa...@redhat.com> wrote: > > Commit 747421e949fc1eb3ba66b5fcccdb7ba051918241 ("Implements Backend > Program conventions for vhost-user-scsi") introduced fd-passing support > as part of implementing the vhost-user backend program conventions. > > When fd passing is used the UNIX domain socket path is NULL and we must > not call unlink(2). > > The unlink(2) call is necessary when the listen socket, lsock, was > created successfully since that means the UNIX domain socket is visible > in the file system. > > Fixes: Coverity CID 1488353 > Fixes: 747421e949fc1eb3ba66b5fcccdb7ba051918241 ("Implements Backend Program > conventions for vhost-user-scsi") > Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> > --- > contrib/vhost-user-scsi/vhost-user-scsi.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM