Commit 387e2b04 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[BRIDGE]: need to ref count the LLC sap

Bridge will OOPS on removal if other application has the SAP open.
The bridge SAP might be shared with other usages, so need
to do reference counting on module removal rather than explicit

Since packet might arrive after or during removal, need to clear
the receive function handle, so LLC only hands it to user (if any).
Signed-off-by: default avatarStephen Hemminger <>
Signed-off-by: default avatarDavid S. Miller <>
parent 4a063739
......@@ -55,7 +55,7 @@ static int __init br_init(void)
static void __exit br_deinit(void)
rcu_assign_pointer(br_stp_sap->rcv_func, NULL);
......@@ -67,6 +67,7 @@ static void __exit br_deinit(void)
br_fdb_get_hook = NULL;
br_fdb_put_hook = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment