mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
Bluetooth: hidp: Fix memory leak of cached report descriptor
Free the cached HID report descriptor on thread terminate. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
committed by
Jaikumar Ganesh
parent
3f8c499e5d
commit
6b7f77eb6a
@@ -764,6 +764,7 @@ static int hidp_session(void *arg)
|
||||
|
||||
up_write(&hidp_session_sem);
|
||||
|
||||
kfree(session->rd_data);
|
||||
kfree(session);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user