host-bmc: free instance ID on request registration failure
getHostPDR() allocates an instance ID before calling registerRequest() to queue a PLDM request. If registerRequest() fails, the allocated instance ID remains allocated until it expires from the InstanceIdDb. Release the allocated instance ID when registerRequest() fails, matching the cleanup already performed when encode_get_pdr_req() fails. This keeps instance ID handling consistent across error paths and avoids retaining an unneeded instance ID until expiration. No functional change to the successful GetPDR request path. Change-Id: I99f707ef02f096ed1e08d922e18da99b31d43e4f Signed-off-by: Meghana Vangapandu <meghanav@ami.com>
M
Meghana Vangapandu committed
bcea5c8518660b7434fb7128c60233dddf446422
Parent: a5c2c3c