[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 02 Feb 2010 23:12:10 +1100
From: Darren Jenkins <darrenrjenkins@...il.com>
To: Kernel Janitors <kernel-janitors@...r.kernel.org>,
Len Brown <lenb@...nel.org>,
linux ACPI <linux-acpi@...r.kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
astarikovskiy@...e.de
Subject: [PATCH] drivers/acpi/ec.c fix a small memory leak
Plug a very small leak in acpi_ec_ecdt_probe()
Coverity CID: 13319
Signed-off-by: Darren Jenkins <darrenrjenkins@...il.com>
diff --git drivers/acpi/ec.c drivers/acpi/ec.c
index d6471bb..13061dc 100644
--- drivers/acpi/ec.c
+++ drivers/acpi/ec.c
@@ -1009,8 +1009,10 @@ int __init acpi_ec_ecdt_probe(void)
/* fall through */
}
- if (EC_FLAGS_SKIP_DSDT_SCAN)
+ if (EC_FLAGS_SKIP_DSDT_SCAN) {
+ kfree(saved_ec);
return -ENODEV;
+ }
/* This workaround is needed only on some broken machines,
* which require early EC, but fail to provide ECDT */
--
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