Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host Command fixes #59783

Merged
merged 3 commits into from
Jul 7, 2023
Merged

Commits on Jun 27, 2023

  1. mgmt: ec_host_cmd: set max response every command

    Update the response buffer size, passed to a command handler, every
    command, since a backend could change it in runtime.
    
    Signed-off-by: Dawid Niedzwiecki <[email protected]>
    niedzwiecki-dawid committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    90999c8 View commit details
    Browse the repository at this point in the history
  2. mgmt: ec_host_cmd: clear response buffer every command

    The response buffer has to be cleared every command not to pass
    unintended content e.g. response from a previous command, or stack
    content.
    
    Signed-off-by: Dawid Niedzwiecki <[email protected]>
    niedzwiecki-dawid committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    49ce08b View commit details
    Browse the repository at this point in the history
  3. mgmt: ec_host_cmd: fix checking command version

    The sizeof is used in a wrong way which causes incorrect checking a
    version of a command. Use NUM_BITS instead.
    
    Signed-off-by: Dawid Niedzwiecki <[email protected]>
    niedzwiecki-dawid committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    624c404 View commit details
    Browse the repository at this point in the history