projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83822fc
)
ACPI: fix NULL check in drivers/acpi/osl.c
author
Adrian Bunk
<bunk@stusta.de>
Tue, 19 Dec 2006 20:56:13 +0000
(12:56 -0800)
committer
Len 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
patch
|
blob
|
history
diff --git
a/drivers/acpi/osl.c
b/drivers/acpi/osl.c
index c84286cbbe2571e3c5b4fb62bf60b93942ff941a..e10679ce1e0eb090ccc3e3e896f129ce931d5108 100644
(file)
--- 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;