lkml.org 
[lkml]   [2012]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 59/82] dmi: Feed DMI table to /dev/random driver
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.5-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Tony Luck <tony.luck@intel.com>

    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>

    ---
    drivers/firmware/dmi_scan.c | 3 +++
    1 file changed, 3 insertions(+)

    --- 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 (*

    dmi_table(buf, dmi_len, dmi_num, decode, NULL);

    + add_device_randomness(buf, dmi_len);
    +
    dmi_iounmap(buf, dmi_len);
    return 0;
    }



    \
     
     \ /
      Last update: 2012-08-13 23:22    [W:0.025 / U:31.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site