K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-03-18T17:00:57.966735Z K 7 svn:log V 601 netmap: fix memory leak in NETMAP_REQ_PORT_INFO_GET The netmap_ioctl() function has a reference counting bug in case of NETMAP_REQ_PORT_INFO_GET command. When `hdr->nr_name[0] == '\0'`, the function does not decrease the refcount of "nmd", which is increased by netmap_mem_find(), causing a refcount leak. Reported by: Xiyu Yang Submitted by: Carl Smith MFC after: 3 days PR: 254311 (cherry picked from commit 0ab5902e8ad93d0a9341dcce386b6c571ee02173) Git Hash: 09b2bde74654a16c56ade52411c464ef79de8cd4 Git Author: vmaffione@FreeBSD.org END