mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 08:44:33 +00:00
Set D_TRACKCLOSE to avoid a race in devfs that could lead to orphaned bpf
devices never getting fully closed. MFC after: 3 days
This commit is contained in:
parent
084bc6a480
commit
7fb547c7f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178882
|
@ -140,6 +140,7 @@ static d_kqfilter_t bpfkqfilter;
|
|||
|
||||
static struct cdevsw bpf_cdevsw = {
|
||||
.d_version = D_VERSION,
|
||||
.d_flags = D_TRACKCLOSE,
|
||||
.d_open = bpfopen,
|
||||
.d_close = bpfclose,
|
||||
.d_read = bpfread,
|
||||
|
|
Loading…
Reference in a new issue