From 398c8d2a7be71b3feaef512b4cb970fec2f7d575 Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Mon, 12 Dec 2011 21:26:09 +0100 Subject: [PATCH] bbswitch: Set the result value if result type is an integer --- bbswitch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bbswitch.c b/bbswitch.c index f991dc5..32dd339 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -63,6 +63,7 @@ static int acpi_optimus_dsm(acpi_handle handle, int func, char *args, obj = (union acpi_object *)output.pointer; if (obj->type == ACPI_TYPE_INTEGER) + *result = obj->integer.value; // REVS (revision number) not found, possibly not an Optimus? if (obj->integer.value == 0x80000002) { printk(KERN_INFO "bbswitch: Optimus function not found\n");