]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: uninitialized variable in amd_pmc_s2d_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Mar 2022 14:18:32 +0000 (17:18 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 8 Mar 2022 15:33:30 +0000 (16:33 +0100)
commitd501e7497c20609a83ed0e7d19b216a74b12e673
treeb4ac5f524ab9646f2bf802691839d04a44d86784
parent57575277ce07af922c3d68d4901a48cc8f31c299
platform/x86: amd-pmc: uninitialized variable in amd_pmc_s2d_init()

The "size" variable can be uninitialized if amd_pmc_send_cmd() fails.

Fixes: 01b92e7f0d88 ("platform/x86: amd-pmc: Add support for AMD Spill to DRAM STB feature")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220307141832.GA19660@kili
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c