diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2020-11-18 15:35:17 +0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2020-11-18 11:46:18 -0800 |
commit | 1a57b1a3e11086a4f183b245754b213b1d9b2d40 (patch) | |
tree | 94fbce75353fbba7b7c53fe3eea7333e03f53211 /lib/dec_and_lock.c | |
parent | 09162bc32c880a791c6c0668ce0745cf7958f576 (diff) |
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: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20201118073517.1884-1-thunder.leizhen@huawei.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions