diff options
author | Abhishek Singh Tomar <abhishek@linux.ibm.com> | 2024-06-14 13:16:02 +0530 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2024-08-02 08:48:56 -0500 |
commit | 8fa4aae8ceeed933a75fd9b00d7374bbfa2a531b (patch) | |
tree | 3c68e2b4492f123df36513e29821c67154f85ed3 /doc/opal-api/opal-messages.rst | |
parent | a9830fc341ebe6f1869dda6173f71ffdd2b7e3ec (diff) | |
download | skiboot-8fa4aae8ceeed933a75fd9b00d7374bbfa2a531b.zip skiboot-8fa4aae8ceeed933a75fd9b00d7374bbfa2a531b.tar.gz skiboot-8fa4aae8ceeed933a75fd9b00d7374bbfa2a531b.tar.bz2 |
core/pldm: Fix Use of uninitialised value
In decode_platform_event_message_resp() when response.completion_code
is not PLDM_SUCCESS then response.platform_event_status remain
uninitialized this end up triggering following warning
==48024== Use of uninitialised value of size 8
==48024== at 0x48D12CB: _itoa_word (_itoa.c:183)
==48024== by 0x48DBFA1: __printf_buffer (vfprintf-process-arg.c:155)
==48024== by 0x48DE072: __vfprintf_internal (vfprintf-internal.c:1559)
==48024== by 0x42DD97: vprintf (stdio.h:41)
==48024== by 0x42DD97: _prlog (stubs.c:27)
==48024== by 0x426C92: send_repository_changed_event (pldm-platform-requests.c:929)
==48024== by 0x426E7D: add_hosted_pdrs (pldm-platform-requests.c:973)
==48024== by 0x427752: pldm_platform_init (pldm-platform-requests.c:1226)
Fix issue by intializing struct response with 0.
Signed-off-by: Abhishek Singh Tomar <abhishek@linux.ibm.com>
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'doc/opal-api/opal-messages.rst')
0 files changed, 0 insertions, 0 deletions