ACPI: fix NULL check in drivers/acpi/osl.c
authorAdrian Bunk <bunk@stusta.de>
Tue, 19 Dec 2006 20:56:13 +0000 (12:56 -0800)
committerLen Brown <len.brown@intel.com>
Wed, 20 Dec 2006 06:27:57 +0000 (01:27 -0500)
Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c

index c84286cbbe2571e3c5b4fb62bf60b93942ff941a..e10679ce1e0eb090ccc3e3e896f129ce931d5108 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;