projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbc96b7
)
dmi: Feed DMI table to /dev/random driver
author
Tony Luck
<tony.luck@intel.com>
Fri, 20 Jul 2012 20:15:20 +0000
(13:15 -0700)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 24 Jul 2012 17:16:41 +0000
(13:16 -0400)
Send the entire DMI (SMBIOS) table to the /dev/random driver to
help seed its pools.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/firmware/dmi_scan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/firmware/dmi_scan.c
b/drivers/firmware/dmi_scan.c
index 153980be4ee64462f12a97563c0143fc59b3eb82..b298158cb9224dd24eb65c5c00d2733b5d6cfc98 100644
(file)
--- a/
drivers/firmware/dmi_scan.c
+++ b/
drivers/firmware/dmi_scan.c
@@
-6,6
+6,7
@@
#include <linux/dmi.h>
#include <linux/efi.h>
#include <linux/bootmem.h>
+#include <linux/random.h>
#include <asm/dmi.h>
/*
@@
-111,6
+112,8
@@
static int __init dmi_walk_early(void (*decode)(const struct dmi_header *,
dmi_table(buf, dmi_len, dmi_num, decode, NULL);
+ add_device_randomness(buf, dmi_len);
+
dmi_iounmap(buf, dmi_len);
return 0;
}