wlan-ap-Telecominfraproject/feeds/qca-wifi-7/ipq53xx/patches-6.1/0260-net-fix-potential-memory-leak.patch
John Crispin 68cf54d9f7 qca-wifi-7: update to ath12.5.5
Signed-off-by: John Crispin <john@phrozen.org>
2025-02-27 12:45:52 +01:00

31 lines
870 B
Diff

From 507188b4c93e2641fd271bd08d881136a1de2068 Mon Sep 17 00:00:00 2001
From: Ken Zhu <quic_guigenz@quicinc.com>
Date: Thu, 14 Oct 2021 08:50:03 -0700
Subject: [PATCH 260/281] net: fix potential memory leak
When A packets come from a disabled port, if it is not a accepted
EAPOL, it has no chance to get freed.
Change-Id: Ib2bddeb53f2117bcc803d11912471a8456a3148a
Signed-off-by: Ken Zhu <quic_guigenz@quicinc.com>
---
net/bridge/br_input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c
index ae524f1b0a42..facc76d13aa5 100644
--- a/net/bridge/br_input.c
+++ b/net/bridge/br_input.c
@@ -439,7 +439,7 @@ static rx_handler_result_t br_handle_frame(struct sk_buff **pskb)
return RX_HANDLER_PASS;
}
}
- break;
+ goto drop;
case BR_STATE_FORWARDING:
case BR_STATE_LEARNING:
--
2.17.1