kernel - lwbuf, don't rely on gcc auto-arrays
authorSamuel J. Greear <sjg@thesjg.com>
Wed, 31 Mar 2010 09:28:11 +0000 (03:28 -0600)
committerSamuel J. Greear <sjg@thesjg.com>
Wed, 31 Mar 2010 09:28:11 +0000 (03:28 -0600)
sys/cpu/i386/misc/lwbuf.c

index ca0b054..a51c953 100644 (file)
@@ -72,7 +72,7 @@ SYSCTL_INT(_kern_ipc, OID_AUTO, lwbuf_reserve, CTLFLAG_RD,
 static int
 do_lwbuf_count(SYSCTL_HANDLER_ARGS)
 {
-    int count[ncpus];
+    int count[SMP_MAXCPU];
     struct mdglobaldata *gd;
     int i;