Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a6fdbf90b94fa4e2f5f7cbb526c71160b6c561c8
Commit:     a6fdbf90b94fa4e2f5f7cbb526c71160b6c561c8
Parent:     83822fc9e6ad2e0f3799174f7c6ad3aa285b9488
Author:     Adrian Bunk <[EMAIL PROTECTED]>
AuthorDate: Tue Dec 19 12:56:13 2006 -0800
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Wed Dec 20 01:27:57 2006 -0500

    ACPI: fix NULL check in drivers/acpi/osl.c
    
    Spotted by the Coverity checker.
    
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/osl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index c84286c..e10679c 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to