Commit 0951fede authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'hid-for-linus-20241105' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid

Pull HID fix from Jiri Kosina:

 - report buffer sanitization fix for HID core (Jiri Kosina)

* tag 'hid-for-linus-20241105' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
  HID: core: zero-initialize the report buffer
parents 2e1b3cc9 177f25d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1875,7 +1875,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);