From 32bc31365774d207d90ad94539e8b8912a265a02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Fri, 3 Nov 2006 16:32:50 +0000 Subject: [PATCH] * acpi.c: kmalloc -> kzalloc fix BUG when writing to wifi or bluetooth --- acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acpi.c b/acpi.c index 185c9aa..369e4f9 100644 --- a/acpi.c +++ b/acpi.c @@ -101,7 +101,7 @@ static int omnibook_acpi_init(const struct omnibook_operation *io_op) if (!priv_data) { dprintk("Try to init ACPI backend\n"); - priv_data = kmalloc(sizeof(struct acpi_backend_data), GFP_KERNEL); + priv_data = kzalloc(sizeof(struct acpi_backend_data), GFP_KERNEL); if (!priv_data) { retval = -ENOMEM; goto out; -- 2.43.5