disallow unload until we do proper refcounting
This commit is contained in:
parent
6c96813482
commit
85f5e7f098
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63645
@ -115,9 +115,18 @@ accept_filt_generic_mod_event(module_t mod, int event, void *data)
|
||||
break;
|
||||
|
||||
case MOD_UNLOAD:
|
||||
/*
|
||||
* Do not support unloading yet. we don't keep track of refcounts
|
||||
* and unloading an accept filter callback and then having it called
|
||||
* is a bad thing. A simple fix would be to track the refcount
|
||||
* in the struct accept_filter.
|
||||
*/
|
||||
#if 0
|
||||
s = splnet();
|
||||
error = accept_filt_del(accfp->accf_name);
|
||||
splx(s);
|
||||
#endif
|
||||
error = EOPNOTSUPP;
|
||||
break;
|
||||
|
||||
case MOD_SHUTDOWN:
|
||||
|
@ -115,9 +115,18 @@ accept_filt_generic_mod_event(module_t mod, int event, void *data)
|
||||
break;
|
||||
|
||||
case MOD_UNLOAD:
|
||||
/*
|
||||
* Do not support unloading yet. we don't keep track of refcounts
|
||||
* and unloading an accept filter callback and then having it called
|
||||
* is a bad thing. A simple fix would be to track the refcount
|
||||
* in the struct accept_filter.
|
||||
*/
|
||||
#if 0
|
||||
s = splnet();
|
||||
error = accept_filt_del(accfp->accf_name);
|
||||
splx(s);
|
||||
#endif
|
||||
error = EOPNOTSUPP;
|
||||
break;
|
||||
|
||||
case MOD_SHUTDOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user