diff options
Diffstat (limited to 'arch/um/drivers/random.c')
-rw-r--r-- | arch/um/drivers/random.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/um/drivers/random.c b/arch/um/drivers/random.c index ae9909415b9c..73b2bdd6d2d3 100644 --- a/arch/um/drivers/random.c +++ b/arch/um/drivers/random.c | |||
@@ -20,6 +20,10 @@ | |||
20 | 20 | ||
21 | #define RNG_MISCDEV_MINOR 183 /* official */ | 21 | #define RNG_MISCDEV_MINOR 183 /* official */ |
22 | 22 | ||
23 | /* Changed at init time, in the non-modular case, and at module load | ||
24 | * time, in the module case. Presumably, the module subsystem | ||
25 | * protects against a module being loaded twice at the same time. | ||
26 | */ | ||
23 | static int random_fd = -1; | 27 | static int random_fd = -1; |
24 | 28 | ||
25 | static int rng_dev_open (struct inode *inode, struct file *filp) | 29 | static int rng_dev_open (struct inode *inode, struct file *filp) |