Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2014 20:25:34 +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: r274354 - head/sys/dev/netmap
Message-ID:  <201411102025.sAAKPYtA063938@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Mon Nov 10 20:25:33 2014
New Revision: 274354
URL: https://svnweb.freebsd.org/changeset/base/274354

Log:
  initialize *color if passed as an argument

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

Modified: head/sys/dev/netmap/netmap_freebsd.c
==============================================================================
--- head/sys/dev/netmap/netmap_freebsd.c	Mon Nov 10 20:19:58 2014	(r274353)
+++ head/sys/dev/netmap/netmap_freebsd.c	Mon Nov 10 20:25:33 2014	(r274354)
@@ -466,6 +466,8 @@ netmap_dev_pager_ctor(void *handle, vm_o
 	if (netmap_verbose)
 		D("handle %p size %jd prot %d foff %jd",
 			handle, (intmax_t)size, prot, (intmax_t)foff);
+	if (color)
+		*color = 0;
 	dev_ref(vmh->dev);
 	return 0;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411102025.sAAKPYtA063938>