Re: [PATCH v3] HID: memory leak in dualshock4_get_calibration_data

From: Max Staudt

Date: Sat Nov 22 2025 - 13:09:37 EST


On 11/23/25 2:37 AM, Eslam Khafagy wrote:
Function dualshock4_get_calibration_data allocates memory to pointer
buf .However, the function may exit prematurely due to transfer_failure
in this case it does not handle freeing memory.

This patch handles memory deallocation at exit.


Thanks, Eslam!


Reviewed-by: Max Staudt <max@xxxxxxxxx>