netmap: fix mutex double unlock bug

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

Submitted by:	 brian90013
MFC after:	3 days
This commit is contained in:
Vincenzo Maffione 2020-10-22 20:21:11 +00:00
parent e416eecbb9
commit 174f809da5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366952

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;
}