Commit 700faee4 authored by Zinx Verituse's avatar Zinx Verituse Committed by Vojtech Pavlik

input: Fix bad struct hidinput initialization in hid-tmff.c

Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
parent b62e4fb9
......@@ -110,7 +110,7 @@ int hid_tmff_init(struct hid_device *hid)
{
struct tmff_device *private;
struct list_head *pos;
struct hid_input *hidinput = list_entry(&hid->inputs, struct hid_input, list);
struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
private = kmalloc(sizeof(struct tmff_device), GFP_KERNEL);
if (!private)
......
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