[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061120210643.GA31879@stusta.de>
Date: Mon, 20 Nov 2006 22:06:43 +0100
From: Adrian Bunk <bunk@...sta.de>
To: Andrew Morton <akpm@...l.org>
Cc: Bob Moore <robert.moore@...el.com>,
Len Brown <len.brown@...el.com>, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [2.6 patch] drivers/acpi/osl.c: fix a NULL check
This patch fixes a non-working NULL check introduced by commit
b229cf92eee616c7cb5ad8cdb35a19b119f00bc8.
Spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@...sta.de>
---
This patch was already sent on:
- 15 Aug 2006
--- linux-2.6.18-rc4-mm1/drivers/acpi/osl.c.old 2006-08-15 00:43:30.000000000 +0200
+++ linux-2.6.18-rc4-mm1/drivers/acpi/osl.c 2006-08-15 00:43:55.000000000 +0200
@@ -1030,7 +1030,7 @@
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists