Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2007 17:01:27 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 127823 for review
Message-ID:  <200710201701.l9KH1R1n028162@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127823

Change 127823 by zec@zec_tpx32 on 2007/10/20 17:00:40

	Oops... don't try to operate on uninitialized data...

Affected files ...

.. //depot/projects/vimage/src/sys/netinet/raw_ip.c#15 edit

Differences ...

==== //depot/projects/vimage/src/sys/netinet/raw_ip.c#15 (text+ko) ====

@@ -147,7 +147,6 @@
 #endif
 	ripcb_zone = uma_zcreate("ripcb", sizeof(struct inpcb),
 	    NULL, NULL, rip_inpcb_init, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
-	uma_zone_set_max(V_ripcbinfo.ipi_zone, maxsockets);
 #ifdef VIMAGE
 	}
 	V_ripcbinfo.ipi_vnet = curvnet;
@@ -166,6 +165,7 @@
 	V_ripcbinfo.ipi_porthashbase =
 	    hashinit(1, M_PCB, &V_ripcbinfo.ipi_porthashmask);
 	V_ripcbinfo.ipi_zone = ripcb_zone;
+	uma_zone_set_max(V_ripcbinfo.ipi_zone, maxsockets);
 	EVENTHANDLER_REGISTER(maxsockets_change, rip_zone_change,
 		NULL, EVENTHANDLER_PRI_ANY);
 }



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