commit | 1c97e94c0b7c56319754ee6f9ccd2e93fe1ee2b3 | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Fri Aug 05 10:51:34 2011 -0400 |
committer | Gustavo F. Padovan <padovan@profusion.mobi> | Thu Aug 11 19:50:28 2011 -0300 |
tree | ae81066ef61c5ab6a081d6f5fedd5089a15e9bca | |
parent | e9d5cb541b22aa651edc29990092ec5f8174cd39 [diff] |
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>
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 7e19a01..26f0d10 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c
@@ -764,6 +764,7 @@ up_write(&hidp_session_sem); + kfree(session->rd_data); kfree(session); return 0; }