From: Dmitry Torokhov Date: Sat, 14 Jan 2006 05:26:15 +0000 (-0500) Subject: Input: HID - fix an oops in PID initialization code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b65d0d1bacfdbb4a134a7ebd16f280d5d42241cb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: HID - fix an oops in PID initialization code Signed-off-by: Dmitry Torokhov --- 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);