Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6fdbf90 authored by Adrian Bunk's avatar Adrian Bunk Committed by Len Brown
Browse files

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



Spotted by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 83822fc9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;