[PATCH 23/47] Fix bad struct hidinput initialization in hid-tmff.c

Vojtech Pavlik
2004-07-29T14:47:13Z

ChangeSet@1.1722.148.9, 2004-06-17 08:38:07+02:00, zinx@epicsol.org
input: Fix bad struct hidinput initialization in hid-tmff.c

Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>

hid-tmff.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/usb/input/hid-tmff.c b/drivers/usb/input/hid-tmff.c
--- a/drivers/usb/input/hid-tmff.c Thu Jul 29 14:40:32 2004
+++ b/drivers/usb/input/hid-tmff.c Thu Jul 29 14:40:32 2004
@@ -110,7 +110,7 @@
{
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)