aboutsummaryrefslogtreecommitdiff
path: root/hw/input
diff options
context:
space:
mode:
authorLin Ma <lma@suse.com>2015-07-14 19:27:30 +0800
committerGerd Hoffmann <kraxel@redhat.com>2015-07-16 17:34:41 +0200
commit2a19b229f6c2f7288bb8c2498bffb01d67810dee (patch)
tree5ff7e82dddeb44571851f10ee872b82cae289b6f /hw/input
parent2d5ee9e7a7dd495d233cf9613a865f63f88e3375 (diff)
downloadqemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.zip
qemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.tar.gz
qemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.tar.bz2
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c
index 616a815..4d85dad 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)