projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940824b
)
Input: HID - fix an oops in PID initialization code
author
Dmitry Torokhov
<dtor_core@ameritech.net>
Sat, 14 Jan 2006 05:26:15 +0000
(
00:26
-0500)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Sat, 14 Jan 2006 05:26:15 +0000
(
00:26
-0500)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/usb/input/pid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/input/pid.c
b/drivers/usb/input/pid.c
index 19e015d171aab767a7df15582dded3958b7b8feb..d9d9f656b8c9ea26f576a11feb451798a886cd4a 100644
(file)
--- 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);