Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115727964
D40324.id122592.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
344 B
Referenced Files
None
Subscribers
None
D40324.id122592.diff
View Options
diff --git a/sys/kern/kern_tslog.c b/sys/kern/kern_tslog.c
--- a/sys/kern/kern_tslog.c
+++ b/sys/kern/kern_tslog.c
@@ -59,6 +59,10 @@
uint64_t tsc = get_cyclecount();
long pos;
+ /* A NULL thread is thread0 before curthread is set. */
+ if (td == NULL)
+ td = &thread0;
+
/* Grab a slot. */
pos = atomic_fetchadd_long(&nrecs, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 28, 6:56 PM (1 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17832731
Default Alt Text
D40324.id122592.diff (344 B)
Attached To
Mode
D40324: tslog: Handle curthread equal to NULL
Attached
Detach File
Event Timeline
Log In to Comment