diff options
author | Jason Wang | 2015-07-27 11:49:19 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2015-07-27 17:11:53 +0200 |
commit | 9d5b731dd2d64deb3bc798ef4e3c08603d54ae02 (patch) | |
tree | f48bb5d3ac1a11ab88e4fe3255f80b3398cc4ae2 /hw/input/virtio-input.c | |
parent | virtio-pci: fix memory MR cleanup for modern (diff) | |
download | qemu-9d5b731dd2d64deb3bc798ef4e3c08603d54ae02.tar.gz qemu-9d5b731dd2d64deb3bc798ef4e3c08603d54ae02.tar.xz qemu-9d5b731dd2d64deb3bc798ef4e3c08603d54ae02.zip |
virtio: get_features() can fail
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/input/virtio-input.c')
-rw-r--r-- | hw/input/virtio-input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c index 7f5b8d6000..7b25d27693 100644 --- a/hw/input/virtio-input.c +++ b/hw/input/virtio-input.c @@ -166,7 +166,8 @@ static void virtio_input_set_config(VirtIODevice *vdev, virtio_notify_config(vdev); } -static uint64_t virtio_input_get_features(VirtIODevice *vdev, uint64_t f) +static uint64_t virtio_input_get_features(VirtIODevice *vdev, uint64_t f, + Error **errp) { return f; } |