diff options
author | Tony Luck <tony.luck@intel.com> | 2012-07-20 13:15:20 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-15 08:10:30 -0700 |
commit | af2eb889f75b4206de39ea86f4f154498a9327f3 (patch) | |
tree | ec34d87bf67daed8aa4906804a5c8f9e4a48e86c /drivers | |
parent | 73e62ae900d632d1bee9ab96c22508f8947da91a (diff) | |
download | linux-3.10-af2eb889f75b4206de39ea86f4f154498a9327f3.tar.gz linux-3.10-af2eb889f75b4206de39ea86f4f154498a9327f3.tar.bz2 linux-3.10-af2eb889f75b4206de39ea86f4f154498a9327f3.zip |
dmi: Feed DMI table to /dev/random driver
commit d114a33387472555188f142ed8e98acdb8181c6d upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-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 153980be4ee..b298158cb92 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; } |