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;
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to