HomeFreeBSD

netmap: fix issues in nm_os_extmem_create()

Description

netmap: fix issues in nm_os_extmem_create()

  • Call vm_object_reference() before vm_map_lookup_done().
  • Use vm_mmap_to_errno() to convert vm_map_* return values to errno.
  • Fix memory leak of e->obj.

Reported by: markj
Reviewed by: markj
MFC after: 1 week

Details

Provenance
vmaffioneAuthored on Mar 20 2021, 5:15 PM
Parents
rG8c9e45503fe4: tools/build: Improve host-symlinks failure mode
Branches
Unknown
Tags
Unknown