From: Tony Luck Date: Fri, 20 Jul 2012 20:15:20 +0000 (-0700) Subject: dmi: Feed DMI table to /dev/random driver X-Git-Tag: v2.6.34.13~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=201095fcd2b848cd22711f9a58d1ffd0c9f3e458;p=karo-tx-linux.git 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 Signed-off-by: Theodore Ts'o Signed-off-by: Paul Gortmaker --- diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index d46467271349..1816d928f741 100644 --- a/drivers/firmware/dmi_scan.c +++ b/drivers/firmware/dmi_scan.c @@ -5,6 +5,7 @@ #include #include #include +#include #include /* @@ -110,6 +111,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; }