Vincenzo Maffione 0ab5902e8a 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 <sherllyyang00@gmail.com>
Submitted by:	Carl Smith <carl.smith@alliedtelesis.co.nz>
MFC after: 3 days
PR:	254311
2021-03-15 17:39:18 +00:00
..
2021-03-14 16:04:27 -07:00
2021-03-13 18:26:15 +01:00
2021-01-15 20:09:55 +01:00
2021-03-13 16:10:01 +01:00
2021-03-13 18:26:15 +01:00
2021-03-15 00:41:38 -05:00
2021-03-13 18:26:15 +01:00
2021-03-13 16:37:28 +01:00
2021-03-12 12:12:35 +01:00