Skip to content

Commit 0951fed

Browse files
committed
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
2 parents 2e1b3cc + 177f25d commit 0951fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,7 @@ u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags)
18751875

18761876
u32 len = hid_report_len(report) + 7;
18771877

1878-
return kmalloc(len, flags);
1878+
return kzalloc(len, flags);
18791879
}
18801880
EXPORT_SYMBOL_GPL(hid_alloc_report_buf);
18811881

0 commit comments

Comments
 (0)