patch-2.2.0-pre1 linux/net/ipv6/af_inet6.c
Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/bridge/br.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Dec 27 10:44:45 1998
- Orig file:
v2.1.132/linux/net/ipv6/af_inet6.c
- Orig date:
Mon Oct 5 13:13:49 1998
diff -u --recursive --new-file v2.1.132/linux/net/ipv6/af_inet6.c linux/net/ipv6/af_inet6.c
@@ -477,7 +477,7 @@
{
if (!unloadable) return 1;
/* We keep internally 3 raw sockets */
- return __this_module.usecount - 3;
+ return atomic_read(&(__this_module.uc.usecount)) - 3;
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov