virtio-balloon: remove BUG() in init_vqs
authorWei Wang <wei.w.wang@intel.com>
Thu, 16 Aug 2018 07:50:56 +0000 (15:50 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Aug 2018 21:56:24 +0000 (00:56 +0300)
commit74cf5b169c4c197a8c66feaf1a98bb009fa306f8
tree5ca79bd27159873eef68d25b3ef215b8341b3561
parent94710cac0ef4ee177a63b5227664b38c95bbf703
virtio-balloon: remove BUG() in init_vqs

It's a bit overkill to use BUG when failing to add an entry to the
stats_vq in init_vqs. So remove it and just return the error to the
caller to bail out nicely.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_balloon.c