Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142671560
D7701.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
428 B
Referenced Files
None
Subscribers
None
D7701.diff
View Options
Index: head/sys/kern/subr_taskqueue.c
===================================================================
--- head/sys/kern/subr_taskqueue.c
+++ head/sys/kern/subr_taskqueue.c
@@ -625,6 +625,11 @@
} else
tq->tq_tcount++;
}
+ if (tq->tq_tcount == 0) {
+ free(tq->tq_threads, M_TASKQUEUE);
+ tq->tq_threads = NULL;
+ return (ENOMEM);
+ }
for (i = 0; i < count; i++) {
if (tq->tq_threads[i] == NULL)
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 2:20 AM (16 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27871834
Default Alt Text
D7701.diff (428 B)
Attached To
Mode
D7701: _taskqueue_start_threads() should only claim success if it starts a thread
Attached
Detach File
Event Timeline
Log In to Comment