On Tue, Jun 12, 2018 at 6:38 AM, Zhouyang Jia <jiazhouyang09@xxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html