Return an error if bpfilter_lookup() fails in bpfkqfilter()
authorvisa <visa@openbsd.org>
Thu, 13 Jan 2022 14:12:02 +0000 (14:12 +0000)
committervisa <visa@openbsd.org>
Thu, 13 Jan 2022 14:12:02 +0000 (14:12 +0000)
commit1c4e6f78fdf9ed3e8694a73add4957d65d1dd27b
treed37c4b8b88f62780ff76f469504e49cfb91193d6
parent87c7c78d66ac35a608680cbeb03b3c349e9aacaf
Return an error if bpfilter_lookup() fails in bpfkqfilter()

The lookup should not fail because the kernel lock should prevent
simultaneous detaching on the vnode layer. However, most other device
kqfilter routines check the lookup's outcome anyway, which is maybe
a bit more forgiving.

OK mpi@
sys/net/bpf.c