Unverified Commit d05ffd83 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14075 HID: core: zero-initialize the report buffer

parents 98beb6bc 48e98735
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1462,7 +1462,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);