Loading drivers/hid/hid-input.c +1 −1 Original line number Diff line number Diff line Loading @@ -1178,7 +1178,7 @@ static void hidinput_led_worker(struct work_struct *work) /* fall back to generic raw-output-report */ len = ((report->size - 1) >> 3) + 1 + (report->id > 0); buf = kmalloc(len, GFP_KERNEL); buf = hid_alloc_report_buf(report, GFP_KERNEL); if (!buf) return; Loading drivers/hid/i2c-hid/i2c-hid.c +1 −1 Original line number Diff line number Diff line Loading @@ -582,7 +582,7 @@ static void i2c_hid_request(struct hid_device *hid, struct hid_report *rep, int ret; int len = i2c_hid_get_report_length(rep) - 2; buf = kzalloc(len, GFP_KERNEL); buf = hid_alloc_report_buf(rep, GFP_KERNEL); if (!buf) return; Loading Loading
drivers/hid/hid-input.c +1 −1 Original line number Diff line number Diff line Loading @@ -1178,7 +1178,7 @@ static void hidinput_led_worker(struct work_struct *work) /* fall back to generic raw-output-report */ len = ((report->size - 1) >> 3) + 1 + (report->id > 0); buf = kmalloc(len, GFP_KERNEL); buf = hid_alloc_report_buf(report, GFP_KERNEL); if (!buf) return; Loading
drivers/hid/i2c-hid/i2c-hid.c +1 −1 Original line number Diff line number Diff line Loading @@ -582,7 +582,7 @@ static void i2c_hid_request(struct hid_device *hid, struct hid_report *rep, int ret; int len = i2c_hid_get_report_length(rep) - 2; buf = kzalloc(len, GFP_KERNEL); buf = hid_alloc_report_buf(rep, GFP_KERNEL); if (!buf) return; Loading