projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d4482
)
platform/x86: dell-ddv: Replace EIO with ENOMSG
author
Armin Wolf
<W_Armin@gmx.de>
Thu, 26 Jan 2023 19:40:19 +0000
(20:40 +0100)
committer
Hans de Goede
<hdegoede@redhat.com>
Fri, 3 Feb 2023 09:01:50 +0000
(10:01 +0100)
When the ACPI WMI interface returns a valid ACPI object
which has the wrong type, then ENOMSG instead of EIO
should be returned, since the WMI method was still
successfully evaluated.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link:
https://lore.kernel.org/r/20230126194021.381092-4-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell/dell-wmi-ddv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/dell/dell-wmi-ddv.c
b/drivers/platform/x86/dell/dell-wmi-ddv.c
index f99c4cb686fdc12b32ef2712d23d82dfe9683749..58fadb74e86ae7d171db70964ba0574726dd5203 100644
(file)
--- a/
drivers/platform/x86/dell/dell-wmi-ddv.c
+++ b/
drivers/platform/x86/dell/dell-wmi-ddv.c
@@
-87,7
+87,7
@@
static int dell_wmi_ddv_query_type(struct wmi_device *wdev, enum dell_ddv_method
if (obj->type != type) {
kfree(obj);
- return -E
IO
;
+ return -E
NOMSG
;
}
*result = obj;