Re: [PATCH 4/4] net/virtio: return error when device_opts arg is NULL

2019-11-20 Thread Michael S. Tsirkin
On Thu, Nov 14, 2019 at 03:16:13PM +0100, Jens Freimann wrote: > device_opts could be NULL. Make sure we don't pass it to > qemu_opts_to_dict. When we made sure it can't be NULL we can also remove > it from the if condition. > This fixes CID 1407222. > > Fixes: 9711cd0dfc3f ("net/virtio: add failo

[PATCH 4/4] net/virtio: return error when device_opts arg is NULL

2019-11-14 Thread Jens Freimann
device_opts could be NULL. Make sure we don't pass it to qemu_opts_to_dict. When we made sure it can't be NULL we can also remove it from the if condition. This fixes CID 1407222. Fixes: 9711cd0dfc3f ("net/virtio: add failover support") Signed-off-by: Jens Freimann --- hw/net/virtio-net.c | 9 ++