Commit 7da94d53 authored by Erik Kaneda's avatar Erik Kaneda Committed by Greg Kroah-Hartman
Browse files

ACPICA: ACPICA: add status check for acpi_hw_read before assigning return value



[ Upstream commit f016b19a ]

The value coming from acpi_hw_read() should not be used if it
returns an error code, so check the status returned by it before
using that value in two places in acpi_hw_register_read().

Reported-by: default avatarMark Gross <mark.gross@intel.com>
Signed-off-by: default avatarErik Schmauss <erik.schmauss@intel.com>
[ rjw: Changelog ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08100b28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment