Skip to contentSkip to conversation

Bluetooth: hidp: Fix memory leak of cached report descriptor

PATCH In review Peter Hurley 1 participant 1 message Aug 5, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 Bluetooth: hidp: Fix memory leak of cached report descriptor

Free the cached HID report descriptor on thread terminate.

---
 net/bluetooth/hidp/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/bluetooth/hidp/core.c +1 -0
index 7e19a01..26f0d10 100644
@@ -764,6 +764,7 @@ static int hidp_session(void *arg)
 
 	up_write(&hidp_session_sem);
 
+	kfree(session->rd_data);
 	kfree(session);
 	return 0;
 }
Signature · 1 line
1.7.4.1