]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
* acpi.c: kmalloc -> kzalloc fix BUG when writing to wifi or bluetooth
authorMathieu Bérard <mathieu.berard@crans.org>
Fri, 3 Nov 2006 16:32:50 +0000 (16:32 +0000)
committerMathieu Bérard <mathieu.berard@crans.org>
Fri, 3 Nov 2006 16:32:50 +0000 (16:32 +0000)
acpi.c

diff --git a/acpi.c b/acpi.c
index 185c9aa367ac060619e5f9bf4a56b270d135856e..369e4f9a648e57d44e6e18d0bfa11642241674b7 100644 (file)
--- 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;