mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
Input: HID - fix an oops in PID initialization code
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
940824b0ac
commit
b65d0d1bac
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue