svn commit: r366952 - head/sys/dev/netmap
Vincenzo Maffione
vmaffione at FreeBSD.org
Thu Oct 22 20:21:12 UTC 2020
Author: vmaffione
Date: Thu Oct 22 20:21:11 2020
New Revision: 366952
URL: https://svnweb.freebsd.org/changeset/base/366952
Log:
netmap: fix mutex double unlock bug
https://github.com/luigirizzo/netmap/pull/733
Submitted by: brian90013
MFC after: 3 days
Modified:
head/sys/dev/netmap/netmap_mem2.c
Modified: head/sys/dev/netmap/netmap_mem2.c
==============================================================================
--- head/sys/dev/netmap/netmap_mem2.c Thu Oct 22 20:02:02 2020 (r366951)
+++ head/sys/dev/netmap/netmap_mem2.c Thu Oct 22 20:21:11 2020 (r366952)
@@ -2007,7 +2007,6 @@ netmap_mem2_if_new(struct netmap_adapter *na, struct n
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;
}
More information about the svn-src-all
mailing list