| From stable-bounces@linux.kernel.org Sat Jan 14 14:01:19 2006 |
| From: Dmitry Torokhov <dtor_core@ameritech.net> |
| To: stable@kernel.org |
| Date: Sat, 14 Jan 2006 16:56:49 -0500 |
| Subject: 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> |
| --- |
| drivers/usb/input/pid.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- linux-2.6.15.1.orig/drivers/usb/input/pid.c |
| +++ linux-2.6.15.1/drivers/usb/input/pid.c |
| @@ -259,7 +259,7 @@ static int hid_pid_upload_effect(struct |
| 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); |