Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vhost-user-blk: Make sure to set Error on realize failure
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: 77542d4 Signed-off-by: Kevin Wolf <[email protected]> Message-Id: <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Eric Blake <[email protected]> Acked-by: Raphael Norwitz <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
- Loading branch information