MFC r366952

netmap: fix mutex double unlock bug

https://github.com/luigirizzo/netmap/pull/733

Submitted by:    brian90013
This commit is contained in:
vmaffione 2020-10-25 07:48:07 +00:00 committed by Franco Fichtner
parent 0e16a34a84
commit f34000fd4a
1 changed files with 0 additions and 1 deletions

View File

@ -2007,7 +2007,6 @@ netmap_mem2_if_new(struct netmap_adapter *na, struct netmap_priv_d *priv)
len = sizeof(struct netmap_if) + (ntot * sizeof(ssize_t));
nifp = netmap_if_malloc(na->nm_mem, len);
if (nifp == NULL) {
NMA_UNLOCK(na->nm_mem);
return NULL;
}