diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index aa7cb49c3..4a0c30882 100755 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1665,7 +1665,7 @@ u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags) u32 len = hid_report_len(report) + 7; - return kmalloc(len, flags); + return kzalloc(len, flags); } EXPORT_SYMBOL_GPL(hid_alloc_report_buf);