The intention for this patch is resolve WMI query failures reported in several HP OMEN notebooks. WMI queries fail on some devices where the ACPI method HWMC unconditionally attempts to create Fields beyond the buffer if the buffer is too small, this breaks essential features such as power profiles. Description of changes between version 1 and version 2 ------------------------------------------------------ v2 patch 1: Resolve-WMI-query-failures-on-some-devices - No new changes to the logic. v2 patch 2: Organize-declaration-variables - Organize declared variables in hp_wmi_perform_query method Jorge Lopez (2): Resolve WMI query failures on some devices Organize declaration variables drivers/platform/x86/hp-wmi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.25.1