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:
parent
e416eecbb9
commit
174f809da5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user