[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)
commit387e2b0439026aa738a9edca15a57e5c0bcb4dfc
tree5d4e0349a0119fcff5278c1077b2b2888933d441
parent4a063739138e2c4e933188d641f1593e01ce8285
[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