svn commit: r274354 - head/sys/dev/netmap
Luigi Rizzo
luigi at FreeBSD.org
Mon Nov 10 20:25:34 UTC 2014
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;
}
More information about the svn-src-all
mailing list