Commit 2a19b229 authored by Lin Ma's avatar Lin Ma Committed by Gerd Hoffmann

virtio-input: fix segfault in virtio_input_hid_properties

commit 5cce1733 introduced virtio-input segfault, This patch fixes it.
Signed-off-by: default avatarLin Ma <>
Signed-off-by: default avatarGerd Hoffmann <>
parent 2d5ee9e7
......@@ -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),
static void virtio_input_hid_class_init(ObjectClass *klass, void *data)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment