projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d5cb5
)
Bluetooth: hidp: Fix memory leak of cached report descriptor
author
Peter Hurley
<peter@hurleysoftware.com>
Fri, 5 Aug 2011 14:51:34 +0000
(10:51 -0400)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Thu, 11 Aug 2011 22:50:28 +0000
(19:50 -0300)
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>
net/bluetooth/hidp/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hidp/core.c
b/net/bluetooth/hidp/core.c
index 7e19a012970edc73ca5ef4dbb0b30bb5c07570aa..26f0d109ff4194585126510107d39c6ea71a0c24 100644
(file)
--- a/
net/bluetooth/hidp/core.c
+++ b/
net/bluetooth/hidp/core.c
@@
-764,6
+764,7
@@
static int hidp_session(void *arg)
up_write(&hidp_session_sem);
+ kfree(session->rd_data);
kfree(session);
return 0;
}