Page MenuHomeFreeBSD

D20218.diff
No OneTemporary

D20218.diff

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

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)

Event Timeline