Author: luigi
Date: Mon Jul 13 10:23:52 2015
New Revision: 285445
URL: https://svnweb.freebsd.org/changeset/base/285445

Log:
  set the refcount for the structure (dropped by mistake in the last commit).

Modified:
  head/sys/dev/netmap/netmap_freebsd.c

Modified: head/sys/dev/netmap/netmap_freebsd.c
==============================================================================
--- head/sys/dev/netmap/netmap_freebsd.c        Mon Jul 13 10:15:01 2015        
(r285444)
+++ head/sys/dev/netmap/netmap_freebsd.c        Mon Jul 13 10:23:52 2015        
(r285445)
@@ -638,6 +638,7 @@ netmap_open(struct cdev *dev, int oflags
                              M_NOWAIT | M_ZERO);
        if (priv == NULL)
                return ENOMEM;
+       priv->np_refs = 1;
        error = devfs_set_cdevpriv(priv, netmap_dtor);
        if (error) {
                free(priv, M_DEVBUF);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to