Pull bugfix into test branch
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / osl.c
index b7ca020a0565a772de31449b073a13b53cc48369..57ae1e5cde0a2400f8f060d88d7024dd89ba6ba1 100644 (file)
@@ -1032,7 +1032,7 @@ acpi_status
 acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache)
 {
        *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL);
-       if (cache == NULL)
+       if (*cache == NULL)
                return AE_ERROR;
        else
                return AE_OK;