[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <844o8550-rr14-1915-qn38-55239sq5o6n1@xreary.bet>
Date: Fri, 31 Oct 2025 09:59:01 +0100 (CET)
From: Jiri Kosina <jikos@...nel.org>
To: Masami Ichikawa <masami256@...il.com>
cc: bentiss@...nel.org, minbell.kim@...sung.com, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] HID: hid-ntrig: Prevent memory leak in
ntrig_report_version()
On Sun, 21 Sep 2025, Masami Ichikawa wrote:
> Use a scope-based cleanup helper for the buffer allocated with kmalloc()
> in ntrig_report_version() to simplify the cleanup logic and prevent
> memory leaks.
>
> Fixes: 185c926283da ("HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version()")
> Signed-off-by: Masami Ichikawa <masami256@...il.com>
I have added an explicit reference to the real actual leak being fixed
into the changelog, and applied, thanks.
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists