Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c97e94c authored by Peter Hurley's avatar Peter Hurley Committed by Gustavo Padovan
Browse files

Bluetooth: hidp: Fix memory leak of cached report descriptor



Free the cached HID report descriptor on thread terminate.

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent e9d5cb54
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -764,6 +764,7 @@ static int hidp_session(void *arg)

	up_write(&hidp_session_sem);

	kfree(session->rd_data);
	kfree(session);
	return 0;
}