diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2011-08-05 16:51:34 +0200 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-08-12 00:50:28 +0200 |
commit | 1c97e94c0b7c56319754ee6f9ccd2e93fe1ee2b3 (patch) | |
tree | ae81066ef61c5ab6a081d6f5fedd5089a15e9bca /net/bluetooth/hidp | |
parent | Bluetooth: hidp: Fix session cleanup on failed conn add (diff) | |
download | linux-1c97e94c0b7c56319754ee6f9ccd2e93fe1ee2b3.tar.xz 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')
-rw-r--r-- | net/bluetooth/hidp/core.c | 1 |
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; } |