]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345292:
authorae <ae@FreeBSD.org>
Tue, 2 Apr 2019 09:33:30 +0000 (09:33 +0000)
committerae <ae@FreeBSD.org>
Tue, 2 Apr 2019 09:33:30 +0000 (09:33 +0000)
commitdc19fd3daf4c5e66f530bbc6fd9242b38674eee3
treee22adfb7838d508a68a517c3268456431d22a78f
parent79b0ae5cc94da3cb957a923a97a9568e5efdfdc0
MFC r345292:
  Convert allocation of bpf_if in bpfattach2 from M_NOWAIT to M_WAITOK
  and remove possible panic condition.

  It is already allowed to sleep in bpfattach[2], since BPF_LOCK was
  converted to SX lock in r332388. Also move KASSERT() to the top of
  function and make full initialization before bpf_if will be linked
  to BPF's list of interfaces.
sys/net/bpf.c