diff options
Diffstat (limited to 'drivers/hid/hid-input.c')
| -rw-r--r-- | drivers/hid/hid-input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index d50e7313b171..a713e6211419 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
| @@ -1178,7 +1178,7 @@ static void hidinput_led_worker(struct work_struct *work) | |||
| 1178 | 1178 | ||
| 1179 | /* fall back to generic raw-output-report */ | 1179 | /* fall back to generic raw-output-report */ |
| 1180 | len = ((report->size - 1) >> 3) + 1 + (report->id > 0); | 1180 | len = ((report->size - 1) >> 3) + 1 + (report->id > 0); |
| 1181 | buf = kmalloc(len, GFP_KERNEL); | 1181 | buf = hid_alloc_report_buf(report, GFP_KERNEL); |
| 1182 | if (!buf) | 1182 | if (!buf) |
| 1183 | return; | 1183 | return; |
| 1184 | 1184 | ||
