ACPI: fix NULL check in drivers/acpi/osl.c

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>
This commit is contained in:
Adrian Bunk 2006-12-19 12:56:13 -08:00 committed by Len Brown
parent 83822fc9e6
commit a6fdbf90b9
1 changed files with 1 additions and 1 deletions

View 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;