initialize *color if passed as an argument

This commit is contained in:
Luigi Rizzo 2014-11-10 20:25:33 +00:00
parent db5cb21105
commit 4e93beff92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274354

View File

@ -466,6 +466,8 @@ netmap_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
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;
}