Files
linux-stable-mirror/drivers
Günther NoackandGreg Kroah-Hartman 31860c3f7a HID: apple: avoid memory leak in apple_report_fixup()
[ Upstream commit 239c15116d ]

The apple_report_fixup() function was returning a
newly kmemdup()-allocated buffer, but never freeing it.

The caller of report_fixup() does not take ownership of the returned
pointer, but it *is* permitted to return a sub-portion of the input
rdesc, whose lifetime is managed by the caller.

Assisted-by: Gemini-CLI:Google Gemini 3
Signed-off-by: Günther Noack <gnoack@google.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-04-02 13:09:28 +02:00
..
2026-03-25 11:08:47 +01:00
2026-03-04 07:21:30 -05:00
2026-03-25 11:08:49 +01:00