]> Gentwo Git Trees - linux/.git/commit
platform/x86/amd/hsmp: Change the error type
authorSuma Hegde <suma.hegde@amd.com>
Tue, 12 Nov 2024 12:04:50 +0000 (12:04 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 13 Nov 2024 13:36:33 +0000 (15:36 +0200)
commit8560b2775a08bf511576a18922c3bde920e69494
tree2494c3386c7e4faed8f2c7dd6ba77e27405ceb0f
parent996b318e6fce255035efd555837d1250433bb0e7
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 <suma.hegde@amd.com>
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Link: https://lore.kernel.org/r/20241112120450.2407125-2-suma.hegde@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hsmp/hsmp.c