Skip to content

Conversation

@joshualant
Copy link
Contributor

Since the response of command 5200h is variable length, a minimum payload size is required to prevent fixed_length payload error path being entered in sanity_check_mctp_rsp(), in the event that max VCS's/VPPBs is different from the actual number of VCS's/VPPB's returned.

We assume that the minimum returned VCS's is 1, and the minimum number of returned VPPB's is also 1. It is unclear from the specification whether it could feasibly be zero returned without returning an error condition. E.g. if the requested VCS ID is incorrect. We assume in this case the response should be "Invalid Input", rather than success with zero returned VCS's.

Fixes: 2f14ae0

Since the response of command 5200h is variable length, a minimum
payload size is required to prevent fixed_length payload error path being
entered in sanity_check_mctp_rsp(), in the event that max VCS's/VPPBs is
different from the actual number of VCS's/VPPB's returned.

We assume that the minimum returned VCS's is 1, and the minimum number
of returned VPPB's is also 1. It is unclear from the specification
whether it could feasibly be zero returned without returning an error condition.
E.g. if the requested VCS ID is incorrect. We assume in this case the response
should be "Invalid Input", rather than success with zero returned VCS's.

Fixes: 2f14ae0

Signed-off-by: Joshua Lant <joshualant@gmail.com>
@davidlohr davidlohr merged commit 0904044 into computexpresslink:main Jan 26, 2026
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants