mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +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 New Issue
Block a user