random: fxrng: Add an entry for RANDOM_RANDOMDEV to the source table
Otherwise we get a NULL pointer dereference when writing to /dev/random.
PR: 288826
Reviewed by: cem
MFC after: 1 week
Fixes: fa8db724ae ("random: Treat writes to /dev/random as separate from /entropy")
Differential Revision: https://reviews.freebsd.org/D52633
This commit is contained in:
@@ -164,6 +164,9 @@ static const struct fxrng_ent_char {
|
||||
[RANDOM_CALLOUT] = {
|
||||
.entc_cls = &fxrng_lo_push,
|
||||
},
|
||||
[RANDOM_RANDOMDEV] = {
|
||||
.entc_cls = &fxrng_lo_push,
|
||||
},
|
||||
[RANDOM_PURE_OCTEON] = {
|
||||
.entc_cls = &fxrng_hi_push, /* Could be made pull. */
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user