Skip to content

Commit

Permalink
Bluetooth: hidp: Fix memory leak of cached report descriptor
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Hurley authored and Gustavo F. Padovan committed Aug 11, 2011
1 parent e9d5cb5 commit 1c97e94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ static int hidp_session(void *arg)

up_write(&hidp_session_sem);

kfree(session->rd_data);
kfree(session);
return 0;
}
Expand Down

0 comments on commit 1c97e94

Please sign in to comment.