summaryrefslogtreecommitdiffstats
path: root/hw/input/virtio-input-hid.c
diff options
context:
space:
mode:
authorLin Ma2015-07-14 13:27:30 +0200
committerGerd Hoffmann2015-07-16 17:34:41 +0200
commit2a19b229f6c2f7288bb8c2498bffb01d67810dee (patch)
tree5ff7e82dddeb44571851f10ee872b82cae289b6f /hw/input/virtio-input-hid.c
parentMerge remote-tracking branch 'remotes/lalrae/tags/mips-20150716' into staging (diff)
downloadqemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.tar.gz
qemu-2a19b229f6c2f7288bb8c2498bffb01d67810dee.tar.xz
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/virtio-input-hid.c')
-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 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)