Commit 72127038 authored by Zinx Verituse's avatar Zinx Verituse Committed by Greg Kroah-Hartman

[PATCH] USB: hid-tmff fix

This fixes a long-standing bug in the hid-tmff driver that
causes it to not work at all.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent cea8c6ef
......@@ -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