Skip to content

Commit

Permalink
Input: HID - fix an oops in PID initialization code
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Jan 14, 2006
1 parent 940824b commit b65d0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/input/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b65d0d1

Please sign in to comment.