From: Peter Hurley Date: Fri, 5 Aug 2011 14:51:34 +0000 (-0400) Subject: Bluetooth: hidp: Fix memory leak of cached report descriptor X-Git-Tag: firefly_0821_release~7613^2~356 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b7f77eb6a2bb8197813d69952fee89d91a073b4;p=firefly-linux-kernel-4.4.55.git Bluetooth: hidp: Fix memory leak of cached report descriptor Free the cached HID report descriptor on thread terminate. Signed-off-by: Peter Hurley Signed-off-by: Gustavo F. Padovan --- 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; }