Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136321258
D20218.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
616 B
Referenced Files
None
Subscribers
None
D20218.diff
View Options
Index: head/sys/dev/random/ivy.c
===================================================================
--- head/sys/dev/random/ivy.c
+++ head/sys/dev/random/ivy.c
@@ -97,6 +97,13 @@
return (retry);
}
+static int
+x86_unimpl_store(u_long *buf __unused)
+{
+
+ panic("%s called", __func__);
+}
+
DEFINE_IFUNC(static, int, x86_rng_store, (u_long *buf), static)
{
has_rdrand = (cpu_feature2 & CPUID2_RDRAND);
@@ -107,7 +114,7 @@
else if (has_rdrand)
return (x86_rdrand_store);
else
- return (NULL);
+ return (x86_unimpl_store);
}
/* It is required that buf length is a multiple of sizeof(u_long). */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 18, 5:19 AM (12 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25482045
Default Alt Text
D20218.diff (616 B)
Attached To
Mode
D20218: Do not return NULL from the Intel hw PRNG ifunc resolver.
Attached
Detach File
Event Timeline
Log In to Comment