diff options
author | Tony Luck <tony.luck@intel.com> | 2012-07-20 13:15:20 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-07-24 13:16:41 -0400 |
commit | d114a33387472555188f142ed8e98acdb8181c6d (patch) | |
tree | cc03a96acc7de8bc7a11df6d7b209e8ba3c3795a /drivers/firmware | |
parent | cbc96b7594b5691d61eba2db8b2ea723645be9ca (diff) | |
download | op-kernel-dev-d114a33387472555188f142ed8e98acdb8181c6d.zip op-kernel-dev-d114a33387472555188f142ed8e98acdb8181c6d.tar.gz |
dmi: Feed DMI table to /dev/random driver
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>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/dmi_scan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index 153980b..b298158 100644 --- 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; } |