On 4/29/21 12:13 PM, Kevin Wolf wrote: > We have to set errp before jumping to virtio_err, otherwise the caller > (virtio_device_realize()) will take this as success and crash when it > later tries to access things that we've already freed in the error path. > > Fixes: 77542d431491788d1e8e79d93ce10172ef207775 > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > hw/block/vhost-user-blk.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org