From: Mathieu BĂ©rard Date: Thu, 2 Nov 2006 16:00:47 +0000 (+0000) Subject: * Fix random dereference in acpi.c X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=3a4ed3125f87176f10948b3772bb26b50b12d0e5;p=omnibook.git * Fix random dereference in acpi.c --- diff --git a/acpi.c b/acpi.c index 0b2284a..185c9aa 100644 --- a/acpi.c +++ b/acpi.c @@ -124,10 +124,11 @@ static int omnibook_acpi_init(const struct omnibook_operation *io_op) goto err; } + io_op->backend->data = (void *) priv_data; + /* attempt to register Toshiba bluetooth ACPI driver */ acpi_bus_register_driver(&omnibook_bt_driver); - io_op->backend->data = (void *) priv_data; dprintk("ACPI backend init OK\n"); goto out; @@ -167,7 +168,6 @@ static void omnibook_acpi_exit(const struct omnibook_operation *io_op) */ static int omnibook_acpi_execute(acpi_handle dev_handle, char *method, const int *param, int *result) { - struct acpi_object_list args_list; struct acpi_buffer buff; union acpi_object arg, out_objs[1];