mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
platform/x86: dell-ddv: Return error if buffer is empty
[ Upstream commit36d44825fa] In several cases, the DDV WMI interface can return buffers with a length of zero. Return -ENODATA in such a case for proper error handling. Also replace some -EIO errors with more specialized ones. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20230126194021.381092-3-W_Armin@gmx.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Stable-dep-of:0331b1b0ba("platform/x86: dell-ddv: Fix temperature scaling") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d62e03be69
commit
cc9d189a39
1 changed files with 12 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue