[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <371o6n9s-sq4q-s071-24r5-8p22o933197r@xreary.bet>
Date: Thu, 24 Apr 2025 11:48:32 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Qasim Ijaz <qasdev00@...il.com>
cc: bentiss@...nel.org, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, linux-input@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] HID: thrustmaster: fix memory leak in
thrustmaster_interrupts()
On Thu, 27 Mar 2025, Qasim Ijaz wrote:
> In thrustmaster_interrupts(), the allocated send_buf is not
> freed if the usb_check_int_endpoints() check fails, leading
> to a memory leak.
>
> Fix this by ensuring send_buf is freed before returning in
> the error path.
>
> Fixes: 50420d7c79c3 ("HID: hid-thrustmaster: Fix warning in thrustmaster_probe by adding endpoint check")
> Signed-off-by: Qasim Ijaz <qasdev00@...il.com>
Applied, thanks.
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists