Patchwork [v2] acpi: silence kmemcheck false positive

login
register
mail settings
Submitter Dan Carpenter
Date April 26, 2010, 10:23 p.m.
Message ID <20100426222337.GX29093@bicker>
Download mbox | patch
Permalink /patch/95222/
State New, archived
Headers show

Comments

Patch

diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 37132dc..743576b 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -527,7 +527,7 @@  int acpi_bus_generate_proc_event4(const char *device_class, const char *bus_id,
 	if (!event_is_open)
 		return 0;
 
-	event = kmalloc(sizeof(struct acpi_bus_event), GFP_ATOMIC);
+	event = kzalloc(sizeof(struct acpi_bus_event), GFP_ATOMIC);
 	if (!event)
 		return -ENOMEM;