linux-stable/tools/crypto/ccp
Mario Limonciello 70f242c193 crypto: ccp - Fix DBC sample application error handling
The sample application was taking values from ioctl() and treating
those as the error codes to present to a user.

This is incorrect when ret is non-zero, the error is stored to `errno`.
Use this value instead.

Fixes: f40d42f116 ("crypto: ccp - Add a sample python script for Dynamic Boost Control")
Fixes: febe3ed322 ("crypto: ccp - Add a sample library for ioctl use")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-09-15 18:29:45 +08:00
..
.gitignore crypto: ccp - Add a sample python script for Dynamic Boost Control 2023-07-20 22:14:57 +12:00
dbc_cli.py crypto: ccp - Add a sample python script for Dynamic Boost Control 2023-07-20 22:14:57 +12:00
dbc.c crypto: ccp - Fix DBC sample application error handling 2023-09-15 18:29:45 +08:00
dbc.py crypto: ccp - Fix DBC sample application error handling 2023-09-15 18:29:45 +08:00
Makefile
test_dbc.py crypto: ccp - Fix ioctl unit tests 2023-09-15 18:29:45 +08:00