diff options
Diffstat (limited to 'drivers/usb/input/hid-input.c')
-rw-r--r-- | drivers/usb/input/hid-input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c index e071c8eeccee..63a4db721f7e 100644 --- a/drivers/usb/input/hid-input.c +++ b/drivers/usb/input/hid-input.c | |||
@@ -398,11 +398,12 @@ ignore: | |||
398 | 398 | ||
399 | void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value, struct pt_regs *regs) | 399 | void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value, struct pt_regs *regs) |
400 | { | 400 | { |
401 | struct input_dev *input = &field->hidinput->input; | 401 | struct input_dev *input; |
402 | int *quirks = &hid->quirks; | 402 | int *quirks = &hid->quirks; |
403 | 403 | ||
404 | if (!input) | 404 | if (!field->hidinput) |
405 | return; | 405 | return; |
406 | input = &field->hidinput->input; | ||
406 | 407 | ||
407 | input_regs(input, regs); | 408 | input_regs(input, regs); |
408 | 409 | ||