diff options
author | Lin Ma <lma@suse.com> | 2015-07-14 19:27:30 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-07-16 17:34:41 +0200 |
commit | 2a19b229f6c2f7288bb8c2498bffb01d67810dee (patch) | |
tree | 5ff7e82dddeb44571851f10ee872b82cae289b6f /hw/input | |
parent | 2d5ee9e7a7dd495d233cf9613a865f63f88e3375 (diff) | |
download | qemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.tar.gz qemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.tar.bz2 qemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.zip |
virtio-input: fix segfault in virtio_input_hid_properties
commit 5cce173 introduced virtio-input segfault, This patch fixes it.
Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/input')
-rw-r--r-- | hw/input/virtio-input-hid.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c index 616a815ed4..4d85dad4d1 100644 --- a/hw/input/virtio-input-hid.c +++ b/hw/input/virtio-input-hid.c @@ -308,6 +308,7 @@ static void virtio_input_hid_handle_status(VirtIOInput *vinput, static Property virtio_input_hid_properties[] = { DEFINE_PROP_STRING("display", VirtIOInputHID, display), DEFINE_PROP_UINT32("head", VirtIOInputHID, head, 0), + DEFINE_PROP_END_OF_LIST(), }; static void virtio_input_hid_class_init(ObjectClass *klass, void *data) |