Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109269109
D39981.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
415 B
Referenced Files
None
Subscribers
None
D39981.diff
View Options
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -975,7 +975,8 @@
error = 0;
if ((prio & PDROP) == 0) {
- gen = malloc(sizeof(u_int) * MAXCPU, M_TEMP, M_WAITOK);
+ gen = mallocarray(sizeof(u_int), mp_maxid + 1, M_TEMP,
+ M_WAITOK);
for (cpu = 0; cpu <= mp_maxid; cpu++) {
if (!CPU_ISSET(cpu, &map) || CPU_ABSENT(cpu))
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 3, 8:25 PM (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16442013
Default Alt Text
D39981.diff (415 B)
Attached To
Mode
D39981: Eliminate MAXCPU from subr_smp.c
Attached
Detach File
Event Timeline
Log In to Comment