mirror-linux/include
Günther Noack 6b3e458806 HID: Document memory allocation properties of report_fixup()
The memory pointer returned by the report_fixup() hook does not get
freed by the caller.  Instead, report_fixup() must return (in return
value and *rsize) a memory buffer with at least the same lifetime as
the input buffer (defined by rdesc and original *rsize).

This is usually achieved using one of the following techniques:

* Returning a pointer and size to a sub-portion of the input buffer
* Returning a pointer to a static buffer
* Allocating a buffer with a devm_*() function,
  which will automatically get freed when the device is removed.

Signed-off-by: Günther Noack <gnoack@google.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
2026-02-19 18:57:38 +01:00
..
acpi Power management updates for 6.20-rc1/7.0-rc1 2026-02-09 19:00:42 -08:00
asm-generic mm.git review status for linus..mm-nonmm-stable 2026-02-12 12:13:01 -08:00
clocksource
crypto Networking changes for 7.0 2026-02-11 19:31:52 -08:00
cxl
drm
dt-bindings Networking changes for 7.0 2026-02-11 19:31:52 -08:00
hyperv
keys
kunit
kvm
linux HID: Document memory allocation properties of report_fixup() 2026-02-19 18:57:38 +01:00
math-emu
media [GIT PULL for v7.0] media updates 2026-02-11 12:20:25 -08:00
memory
misc
net RDMA v7.0 merge window 2026-02-12 17:05:20 -08:00
pcmcia
ras
rdma RDMA v7.0 merge window 2026-02-12 17:05:20 -08:00
rv
scsi SCSI misc on 20260212 2026-02-12 15:43:02 -08:00
soc
sound
target
trace mm.git review status for linus..mm-stable 2026-02-12 11:32:37 -08:00
uapi virtio,vhost,vdpa: features, fixes 2026-02-13 12:02:18 -08:00
ufs
vdso
video
xen
Kbuild