]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
initialize *color if passed as an argument
authorluigi <luigi@FreeBSD.org>
Mon, 10 Nov 2014 20:25:33 +0000 (20:25 +0000)
committerluigi <luigi@FreeBSD.org>
Mon, 10 Nov 2014 20:25:33 +0000 (20:25 +0000)
sys/dev/netmap/netmap_freebsd.c

index 160b7c0ef9559796e864db8079d41ef24d71003d..037abc30ebe8563e05792deb5074ea35656aff5d 100644 (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;
 }