diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-06 07:49:54 -1000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-06 07:49:54 -1000 |
commit | 0951fede4e5215e4529a3b711ac94fc84f90eca8 (patch) | |
tree | 836dd7129b30138f91cba9bd0fb1fb75a421f357 /drivers/hid | |
parent | 2e1b3cc9d7f790145a80cb705b168f05dab65df2 (diff) | |
parent | 177f25d1292c7e16e1199b39c85480f7f8815552 (diff) | |
download | linux-stable-0951fede4e5215e4529a3b711ac94fc84f90eca8.tar.gz linux-stable-0951fede4e5215e4529a3b711ac94fc84f90eca8.tar.bz2 linux-stable-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); |