Staticize a variable.
This fixes the case where linking randomdev into the kernel statically can cause panics at shutdown time. Reported by: sos
This commit is contained in:
parent
9b9369d90e
commit
f32bce812d
@ -74,7 +74,7 @@ static struct cdevsw random_cdevsw = {
|
||||
static dev_t randomdev;
|
||||
static dev_t urandomdev;
|
||||
|
||||
void *buf;
|
||||
static void *buf;
|
||||
|
||||
extern void randominit(void);
|
||||
|
||||
|
@ -74,7 +74,7 @@ static struct cdevsw random_cdevsw = {
|
||||
static dev_t randomdev;
|
||||
static dev_t urandomdev;
|
||||
|
||||
void *buf;
|
||||
static void *buf;
|
||||
|
||||
extern void randominit(void);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user