diff options
author | Armin Wolf <[email protected]> | 2024-03-14 19:45:38 +0100 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2024-03-25 15:53:59 +0100 |
commit | e526da8f8875267ccb8f4c4782668ebfa160b2c0 (patch) | |
tree | 1cb427cc29aa311facee947515d872520f25174c /drivers/platform/surface/surface_aggregator_registry.c | |
parent | c663b26972eae7d2a614f584c92a266fe9a2d44c (diff) |
platform/x86: wmi: Avoid returning AE_OK upon unknown error
If an error code other than EINVAL, ENODEV or ETIME is returned
by ec_read()/ec_write(), then AE_OK is wrongly returned.
Fix this by only returning AE_OK if the return code is 0, and
return AE_ERROR otherwise.
Tested on a Dell Inspiron 3505 and a Asus Prime B650-Plus.
Reviewed-by: Hans de Goede <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
Signed-off-by: Armin Wolf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_aggregator_registry.c')
0 files changed, 0 insertions, 0 deletions