mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-17 09:21:35 +00:00
31 lines
870 B
Diff
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
|
|
|