diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2011-08-05 10:51:34 -0400 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2011-08-11 18:42:08 -0700 |
commit | 6b7f77eb6a2bb8197813d69952fee89d91a073b4 (patch) | |
tree | 2e461dfddadf9dd8dbeae7f0f10d5b0f41c2c6e2 /net/bluetooth | |
parent | 3f8c499e5d6963525407553c11a241b00809f428 (diff) | |
download | kernel_samsung_espresso10-6b7f77eb6a2bb8197813d69952fee89d91a073b4.zip kernel_samsung_espresso10-6b7f77eb6a2bb8197813d69952fee89d91a073b4.tar.gz kernel_samsung_espresso10-6b7f77eb6a2bb8197813d69952fee89d91a073b4.tar.bz2 |
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')
-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 7e19a01..26f0d10 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; } |