summaryrefslogtreecommitdiffstats
path: root/hw/net/tulip.c
diff options
context:
space:
mode:
authorKevin Wolf2021-04-29 19:13:11 +0200
committerKevin Wolf2021-05-18 12:57:38 +0200
commitf26729715ef21325f972f693607580a829ad1cbb (patch)
treedae6d224bad97ab2ae01097dfd91fbd119d81f61 /hw/net/tulip.c
parentvhost-user-blk-test: test discard/write zeroes invalid inputs (diff)
downloadqemu-f26729715ef21325f972f693607580a829ad1cbb.tar.gz
qemu-f26729715ef21325f972f693607580a829ad1cbb.tar.xz
qemu-f26729715ef21325f972f693607580a829ad1cbb.zip
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: 77542d431491788d1e8e79d93ce10172ef207775 Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20210429171316.162022-2-kwolf@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Raphael Norwitz <raphael.norwitz@nutanix.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/net/tulip.c')
0 files changed, 0 insertions, 0 deletions