On Tue, Jun 12, 2018 at 6:38 AM, Zhouyang Jia <jiazhouyan...@gmail.com> wrote:
> When acpi_bus_get_device fails, the lack of error-handling code may
> cause unexpected results.

It is perfectly predictable in this particular case: adev will be NULL
and acpi_device_enumerated(adev) will return false.

> This patch adds error-handling code after calling acpi_bus_get_device.

Which is not necessary.

Thanks,
Rafael

Reply via email to