Skip to content

Commit

Permalink
dmi: Feed DMI table to /dev/random driver
Browse files Browse the repository at this point in the history
commit d114a33 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: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
  • Loading branch information
Tony Luck authored and Willy Tarreau committed Oct 7, 2012
1 parent 708daa1 commit 9eee5ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/firmware/dmi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <linux/efi.h>
#include <linux/bootmem.h>
#include <linux/slab.h>
#include <linux/random.h>
#include <asm/dmi.h>

/*
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9eee5ee

Please sign in to comment.