- sysfs_cpus = kzalloc(sizeof(struct ia64_cpu) * NR_CPUS, GFP_KERNEL); + sysfs_cpus = vmalloc(sizeof(struct ia64_cpu) * NR_CPUS); + memset(sysfs_cpus, 0, sizeof(sizeof(struct ia64_cpu) * NR_CPUS)); if (!sysfs_cpus) panic("kzalloc in topology_init failed - NR_CPUS too big?"); How about having the check "if (!sysfs_cpus)" before the memset()? -Tony - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Fri Apr 13 04:06:43 2007
This archive was generated by hypermail 2.1.8 : 2007-04-13 04:06:58 EST