diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-06 18:49:54 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-06 18:49:54 +0100 |
commit | 0951fede4e5215e4529a3b711ac94fc84f90eca8 (patch) | |
tree | 836dd7129b30138f91cba9bd0fb1fb75a421f357 /drivers/hid | |
parent | Merge tag 'arm-fixes-6.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | HID: core: zero-initialize the report buffer (diff) | |
download | linux-0951fede4e5215e4529a3b711ac94fc84f90eca8.tar.xz linux-0951fede4e5215e4529a3b711ac94fc84f90eca8.zip |
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
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 612ee6ddfc8d..582fd234eec7 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -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); |