platform-mc: Fix size of getPDRRepositoryInfo cmd
According to the PLDM documentation GetPDRRepositoryInfo command
doesn't contain any request data.
Tested:
No more messages like
"""
Failed to decode response GetPDRRepositoryInfo for terminus ID X, error
3
"""
are present in the journal.
Change-Id: I6d0199282ec80e803953ef38fa5698b6e6734bdb
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/platform-mc/platform_manager.cpp b/platform-mc/platform_manager.cpp
index 1e35477..ae3a421 100644
--- a/platform-mc/platform_manager.cpp
+++ b/platform-mc/platform_manager.cpp
@@ -394,7 +394,7 @@
const pldm_tid_t tid, uint8_t& repositoryState, uint32_t& recordCount,
uint32_t& repositorySize, uint32_t& largestRecordSize)
{
- Request request(sizeof(pldm_msg_hdr) + sizeof(uint8_t));
+ Request request(sizeof(pldm_msg_hdr));
auto requestMsg = new (request.data()) pldm_msg;
auto rc = encode_pldm_header_only(PLDM_REQUEST, 0, PLDM_PLATFORM,
PLDM_GET_PDR_REPOSITORY_INFO, requestMsg);