summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/osl.c
diff options
context:
space:
mode:
authorLen Brown2006-12-20 08:52:50 +0100
committerLen Brown2006-12-20 08:52:50 +0100
commit3be11c8f4f2fa194834c2e83540f34da442b8977 (patch)
tree35386fe97c1dd62a261c297512b8e5137b56c35d /drivers/acpi/osl.c
parentPull ec into test branch (diff)
parentACPI: Kconfig - depend on PM rather than selecting it (diff)
downloadkernel-qcow2-linux-3be11c8f4f2fa194834c2e83540f34da442b8977.tar.gz
kernel-qcow2-linux-3be11c8f4f2fa194834c2e83540f34da442b8977.tar.xz
kernel-qcow2-linux-3be11c8f4f2fa194834c2e83540f34da442b8977.zip
Pull bugfix into test branch
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r--drivers/acpi/osl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index b7ca020a0565..57ae1e5cde0a 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -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;