Searched hist:"3 b1ea906" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/crypto/ccp/ |
H A D | dbc.py | 3b1ea906 Tue Aug 29 10:07:57 CDT 2023 Mario Limonciello <mario.limonciello@amd.com> crypto: ccp - Fix DBC sample application error handling
[ Upstream commit 70f242c1933e9e881c13c31640bb6d56e8b7e738 ]
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: f40d42f116cf ("crypto: ccp - Add a sample python script for Dynamic Boost Control") Fixes: febe3ed3222f ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
|
H A D | dbc.c | 3b1ea906 Tue Aug 29 10:07:57 CDT 2023 Mario Limonciello <mario.limonciello@amd.com> crypto: ccp - Fix DBC sample application error handling
[ Upstream commit 70f242c1933e9e881c13c31640bb6d56e8b7e738 ]
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: f40d42f116cf ("crypto: ccp - Add a sample python script for Dynamic Boost Control") Fixes: febe3ed3222f ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
|