diff options
| author | Suma Hegde <[email protected]> | 2024-11-12 12:04:50 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2024-11-13 13:36:33 +0000 |
| commit | 8560b2775a08bf511576a18922c3bde920e69494 (patch) | |
| tree | 2494c3386c7e4faed8f2c7dd6ba77e27405ceb0f /drivers/platform/x86/intel/pmt/class.c | |
| parent | platform/x86/amd/hsmp: Add new error code and error logs (diff) | |
| download | kernel-8560b2775a08bf511576a18922c3bde920e69494.tar.gz kernel-8560b2775a08bf511576a18922c3bde920e69494.zip | |
platform/x86/amd/hsmp: Change the error type
When file is opened in WRITE only mode, then GET messages are not allowed
and when file is opened in READ only mode, SET messages are not allowed.
In these scenerios, return error EPERM to userspace instead of EINVAL.
Signed-off-by: Suma Hegde <[email protected]>
Reviewed-by: Naveen Krishna Chatradhi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
