]> git.baikalelectronics.ru Git - uboot.git/commit
x86: acpi: Add memset to initialize SPCR table
authorWolfgang Wallner <wolfgang.wallner@br-automation.com>
Wed, 16 Sep 2020 14:57:53 +0000 (16:57 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 21 Sep 2020 08:41:36 +0000 (16:41 +0800)
commit07010e141cdacbe1e7abb4123fed1710c44eb21f
treebd7cfe7a8248bee4d51e8bfcd7da968816c8efb6
parent39dbea0d2c81f48f3a25752797603568897e2dfd
x86: acpi: Add memset to initialize SPCR table

Add a missing memset to acpi_create_spcr().

The other acpi_create_xxxx() functions perform a memset on their
structures, acpi_create_spcr() does not and as a result the contents of
this table are partly uninitialized (and thus random after every reset).

Fixes: bacf576a7242 ("x86: acpi: Generate SPCR table")
Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fix the tags format in the commit message]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c