1
0
mirror of https://github.com/yurisieucuti/treble_evolution.git synced 2024-11-28 04:44:30 +00:00
treble_evolution/patches/trebledroid/platform_packages_modules_Connectivity/0002-Dont-delete-UID-from-BpfMap-on-BPF-less-kernel.patch
2024-03-10 06:48:11 +00:00

26 lines
1.0 KiB
Diff

From 872277e89874d3abce6ffb940276b3ac04e25584 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Wed, 26 Oct 2022 18:11:10 -0400
Subject: [PATCH 2/5] Dont delete UID from BpfMap on BPF-less kernel
Change-Id: I93b5b8237f6655cb47e0b0584c54cad73a51e7b2
---
service-t/src/com/android/server/net/NetworkStatsService.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/service-t/src/com/android/server/net/NetworkStatsService.java b/service-t/src/com/android/server/net/NetworkStatsService.java
index f977a2724c..877f351b5f 100644
--- a/service-t/src/com/android/server/net/NetworkStatsService.java
+++ b/service-t/src/com/android/server/net/NetworkStatsService.java
@@ -2498,6 +2498,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
* @param uid
*/
private void deleteKernelTagData(int uid) {
+ if(mCookieTagMap == null) return;
try {
mCookieTagMap.forEach((key, value) -> {
// If SkDestroyListener deletes the socket tag while this code is running,
--
2.25.1