summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp/core.c
diff options
context:
space:
mode:
authorPeter Hurley2011-08-05 16:51:34 +0200
committerGustavo F. Padovan2011-08-12 00:50:28 +0200
commit1c97e94c0b7c56319754ee6f9ccd2e93fe1ee2b3 (patch)
treeae81066ef61c5ab6a081d6f5fedd5089a15e9bca /net/bluetooth/hidp/core.c
parentBluetooth: hidp: Fix session cleanup on failed conn add (diff)
downloadkernel-qcow2-linux-1c97e94c0b7c56319754ee6f9ccd2e93fe1ee2b3.tar.gz
kernel-qcow2-linux-1c97e94c0b7c56319754ee6f9ccd2e93fe1ee2b3.tar.xz
kernel-qcow2-linux-1c97e94c0b7c56319754ee6f9ccd2e93fe1ee2b3.zip
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>
Diffstat (limited to 'net/bluetooth/hidp/core.c')
-rw-r--r--net/bluetooth/hidp/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 7e19a012970e..26f0d109ff41 100644
--- 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;
}