Skip to content
Commit 1a57b1a3 authored by Zhen Lei's avatar Zhen Lei Committed by Dan Williams
Browse files

ACPI/nfit: avoid accessing uninitialized memory in acpi_nfit_ctl()



The ACPI_ALLOCATE() does not zero the "buf", so when the condition
"integer->type != ACPI_TYPE_INTEGER" in int_to_buf() is met, the result
is unpredictable in acpi_nfit_ctl().

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarDan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20201118073517.1884-1-thunder.leizhen@huawei.com
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 09162bc3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment