From 3a4ed3125f87176f10948b3772bb26b50b12d0e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Thu, 2 Nov 2006 16:00:47 +0000 Subject: [PATCH] * Fix random dereference in acpi.c --- acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.43.5