Przeglądaj źródła

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>
Peter Hurley 14 lat temu
rodzic
commit
1c97e94c0b
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      net/bluetooth/hidp/core.c

+ 1 - 0
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;
 }