X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Fhid%2Fhid-input.c;h=a713e6211419c880ddd0a39597b78f16ad84919a;hb=c378a6566392789dd7400b13e4d4064cbbb9a087;hp=d50e7313b171e4e9bd732cbee40a1a5cd5e501b5;hpb=c2288d4d3830946d91ae7aba599d34828d07f103;p=cascardo%2Flinux.git 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) /* 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;