mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
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