]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/acpi/power.c
ACPI: check a return value correctly in acpi_power_get_context()
[mirror_ubuntu-bionic-kernel.git] / drivers / acpi / power.c
index 76bf6d90c700efac7905d6167680915ca50e1498..f2a76acecfcd45383432adbfd41c52775e12a3f2 100644 (file)
@@ -121,7 +121,7 @@ acpi_power_get_context(acpi_handle handle,
        }
 
        *resource = acpi_driver_data(device);
-       if (!resource)
+       if (!*resource)
                return -ENODEV;
 
        return 0;