Date: Mon, 13 Jul 2015 10:23:53 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285445 - head/sys/dev/netmap Message-ID: <201507131023.t6DANrZc029871@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507131023.t6DANrZc029871>