1
0
mirror of https://github.com/yurisieucuti/treble_evolution.git synced 2024-11-24 08:36:19 +00:00
treble_evolution/patches/platform_packages_modules_Connectivity/0002-Dont-delete-UID-from-BpfMap-on-BPF-less-kernel.patch
2024-04-24 15:13:17 +00:00

26 lines
1.0 KiB
Diff

From 8632082a603ba7106b2e07f9b1442e14789646a9 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 02/13] 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 2c9f30c8f7..40c214ed96 100644
--- a/service-t/src/com/android/server/net/NetworkStatsService.java
+++ b/service-t/src/com/android/server/net/NetworkStatsService.java
@@ -2450,6 +2450,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