]> git.baikalelectronics.ru Git - kernel.git/commit
[BRIDGE]: need to ref count the LLC sap
authorStephen Hemminger <shemminger@osdl.org>
Tue, 23 May 2006 22:20:25 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 May 2006 22:20:25 +0000 (15:20 -0700)
commit63202e35ead037a370e86d353652a6bfcf0687a6
tree5d4e0349a0119fcff5278c1077b2b2888933d441
parentba0f36486c356c067d8eb9525cfbc897cac8bf44
[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
close/delete.

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: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br.c