HomeFreeBSD

In bpf_getdltlist(), do not call copyout(9) while holding bpf lock.

Description

In bpf_getdltlist(), do not call copyout(9) while holding bpf lock.
Copy the data into temprorary malloced buffer and drop the lock for
copyout.

Reported, reviewed and tested by: cem
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS296008: Undo r295543, since the shrink wrapping bug was fixed upstream by Davide
Branches
Unknown
Tags
Unknown