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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366952
@ -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…
Reference in New Issue
Block a user