Re: [PATCH] drivers: acpi: apd: Check return value of acpi_dev_get_property

2020-08-21 Thread Rafael J. Wysocki
On Wed, Aug 19, 2020 at 7:17 PM Furquan Shaikh wrote: > > `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

[PATCH] drivers: acpi: apd: Check return value of acpi_dev_get_property

2020-08-19 Thread Furquan Shaikh
`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.