diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-10-01 16:30:07 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-10-04 16:10:39 +0200 |
commit | 7316fef4b993c4435f9fe55e7f2590baf25621ec (patch) | |
tree | 230e62f26c73c83d189549d7493bc8eb676406e9 /rust/helpers/task.c | |
parent | 52cd1906ef6b93d638a78a34765c38c7edadd2ff (diff) | |
download | linux-7316fef4b993c4435f9fe55e7f2590baf25621ec.tar.gz linux-7316fef4b993c4435f9fe55e7f2590baf25621ec.tar.bz2 linux-7316fef4b993c4435f9fe55e7f2590baf25621ec.zip |
HID: core: remove one more kmemdup on .probe()
That last kmemdup while opening the report descriptor was required to
have a common kfree() on it.
Move that kmemdup in the only special case it's required (if there is a
.report_fixup()), and add a more elaborated check before freeing
hdev->rdesc, to avoid a double free.
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-3-2ef1019468df@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions