aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2006-01-14 16:56:49 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-30 22:13:17 -0800
commitad9ed6ca1b9f075a668a54c85ca5e706c19427a1 (patch)
tree7a213a278ec61a7c58bacb5fbd9db910b8f94722
parentf5fa864237572059d87f3b8b017c570c39ea5dd6 (diff)
downloadlinux-linaro-stable-ad9ed6ca1b9f075a668a54c85ca5e706c19427a1.tar.gz
[PATCH] Input: HID - fix an oops in PID initialization code
Input: HID - fix an oops in PID initialization code Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/input/pid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/input/pid.c b/drivers/usb/input/pid.c
index 19e015d171aa..d9d9f656b8c9 100644
--- a/drivers/usb/input/pid.c
+++ b/drivers/usb/input/pid.c
@@ -259,7 +259,7 @@ static int hid_pid_upload_effect(struct input_dev *dev,
int hid_pid_init(struct hid_device *hid)
{
struct hid_ff_pid *private;
- 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);
struct input_dev *input_dev = hidinput->input;
private = hid->ff_private = kzalloc(sizeof(struct hid_ff_pid), GFP_KERNEL);