patch-2.0.37 linux/net/netlink.c

Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/ipv4/rarp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.36/linux/net/netlink.c linux/net/netlink.c
@@ -198,6 +198,7 @@
 	if(active_map&(1<<unit))
 		return -EBUSY;
 	active_map|=(1<<unit);
+	open_map&=~(1<<unit);	
 	netlink_handler[unit]=function;
 	return 0;
 }
@@ -206,6 +207,7 @@
 {
 	active_map&=~(1<<unit);
 	netlink_handler[unit]=netlink_err;
+	open_map&=~(1<<unit);	
 }
 
 int netlink_post(int unit, struct sk_buff *skb)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov