From owner-svn-src-all@freebsd.org Mon Jul 13 10:23:53 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B45159995C3; Mon, 13 Jul 2015 10:23:53 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A11E5121E; Mon, 13 Jul 2015 10:23:53 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6DANrc4029872; Mon, 13 Jul 2015 10:23:53 GMT (envelope-from luigi@FreeBSD.org) Received: (from luigi@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6DANrZc029871; Mon, 13 Jul 2015 10:23:53 GMT (envelope-from luigi@FreeBSD.org) Message-Id: <201507131023.t6DANrZc029871@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: luigi set sender to luigi@FreeBSD.org using -f From: Luigi Rizzo Date: Mon, 13 Jul 2015 10:23:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285445 - head/sys/dev/netmap X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2015 10:23:53 -0000 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);