Re: [PATCH] HID: playstation: Fix memory leak in dualshock4_get_calibration_data()

From: Jiri Kosina

Date: Tue Nov 18 2025 - 12:07:29 EST


On Mon, 10 Nov 2025, Abdun Nihaal wrote:

> The memory allocated for buf is not freed in the error paths when
> ps_get_report() fails. Free buf before jumping to transfer_failed label
>
> Fixes: 947992c7fa9e ("HID: playstation: DS4: Fix calibration workaround for clone devices")
> Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>

Applied, thanks.

--
Jiri Kosina
SUSE Labs