diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-03-15 01:52:00 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-03-15 01:52:00 +0000 |
commit | 420f21f752c85ffc1575a260ab601a99287ce6a1 (patch) | |
tree | ba26ee688b176bbc4cc8c4d884c51708bcdca69f /sbin | |
parent | e3a889945bc9541b776225192d303a06de5b1e18 (diff) | |
download | FreeBSD-src-420f21f752c85ffc1575a260ab601a99287ce6a1.zip FreeBSD-src-420f21f752c85ffc1575a260ab601a99287ce6a1.tar.gz |
Lock down global variables in if_tap (primarily, the tap softc list);
add tapmtx, which protects globale variables.
Notes:
- The EBUSY check in MOD_UNLOAD may be subject to a race. Moving the
event handler unregister inside the mutex grab may prevent that race.
- Locking of global variables safely is now possible because tapclones
is only modified when the module is loading or unloading, thanks to
phk's recent chang to clone_setup().
- softc locking to follow.
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions