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

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

parents fe8401db d3367737
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1664,7 +1664,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);