Skip to content
Commit 40edea3a authored by Wolfgang Wallner's avatar Wolfgang Wallner Committed by Bin Meng
Browse files

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: b288cd96 ("x86: acpi: Generate SPCR table")
Signed-off-by: default avatarWolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
[bmeng: fix the tags format in the commit message]
Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 3f6966ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment