Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform/x86: dell-ddv: Return error if buffer is empty
[ Upstream commit 36d4482 ] 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: 0331b1b ("platform/x86: dell-ddv: Fix temperature scaling") Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information