summaryrefslogtreecommitdiff
path: root/tools/crypto/ccp/test_dbc.py
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2024-02-13 20:34:28 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2024-02-24 03:41:20 +0300
commit0e8fca2f12ceb77c3a6b6f210135031f264aa612 (patch)
tree1467354755608d6e38a8ea9eae3ec3132332f4b5 /tools/crypto/ccp/test_dbc.py
parent53cc9baeb9bc2a187eb9c9790d30995148852b12 (diff)
downloadlinux-0e8fca2f12ceb77c3a6b6f210135031f264aa612.tar.xz
crypto: ccp - Avoid discarding errors in psp_send_platform_access_msg()
Errors can potentially occur in the "processing" of PSP commands or commands can be processed successfully but still return an error code in the header. This second case was being discarded because PSP communication worked but the command returned an error code in the payload header. Capture both cases and return them to the caller as -EIO for the caller to investigate. The caller can detect the latter by looking at `req->header->status`. Reported-and-tested-by: Tim Van Patten <timvp@google.com> Fixes: 7ccc4f4e2e50 ("crypto: ccp - Add support for an interface for platform features") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/crypto/ccp/test_dbc.py')
0 files changed, 0 insertions, 0 deletions