ACPI: SoC: APD: Check return value of acpi_dev_get_property()
authorFurquan Shaikh <furquan@google.com>
Wed, 19 Aug 2020 17:16:56 +0000 (10:16 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Aug 2020 18:20:55 +0000 (20:20 +0200)
commit6556b0a8ef3a51ade1f772ff58807de463fc1b58
tree0f1bce0b11b64d502d1c45f5eb7c3be5f72eaadb
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
ACPI: SoC: APD: Check return value of acpi_dev_get_property()

`fch_misc_setup()` uses `acpi_dev_get_property()` to read the value of
"is-rv" passed in by BIOS in ACPI tables. However, not all BIOSes
might pass in this property and hence it is important to first check
the return value of `acpi_dev_get_property()` before referencing the
object filled by it.

Signed-off-by: Furquan Shaikh <furquan@google.com>
[ rjw: Subject edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_apd.c