Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252877
b: refs/heads/master
c: ab6a931
h: refs/heads/master
i:
  252875: 0422d7c
v: v3
  • Loading branch information
Lee, Chun-Yi authored and Matthew Garrett committed May 27, 2011
1 parent d3d995d commit bf748f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8d1a266eee5f8b822449fe19d1735189377ef47
refs/heads/master: ab6a931620cfa5c565b351d1982306c3c8b97f96
9 changes: 6 additions & 3 deletions trunk/drivers/platform/x86/acer-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,8 @@ WMI_execute_u32(u32 method_id, u32 in, u32 *out)

obj = (union acpi_object *) result.pointer;
if (obj && obj->type == ACPI_TYPE_BUFFER &&
obj->buffer.length == sizeof(u32)) {
(obj->buffer.length == sizeof(u32) ||
obj->buffer.length == sizeof(u64))) {
tmp = *((u32 *) obj->buffer.pointer);
} else {
tmp = 0;
Expand Down Expand Up @@ -879,7 +880,8 @@ static acpi_status WMID_set_capabilities(void)

obj = (union acpi_object *) out.pointer;
if (obj && obj->type == ACPI_TYPE_BUFFER &&
obj->buffer.length == sizeof(u32)) {
(obj->buffer.length == sizeof(u32) ||
obj->buffer.length == sizeof(u64))) {
devices = *((u32 *) obj->buffer.pointer);
} else {
kfree(out.pointer);
Expand Down Expand Up @@ -1522,7 +1524,8 @@ static u32 get_wmid_devices(void)

obj = (union acpi_object *) out.pointer;
if (obj && obj->type == ACPI_TYPE_BUFFER &&
obj->buffer.length == sizeof(u32)) {
(obj->buffer.length == sizeof(u32) ||
obj->buffer.length == sizeof(u64))) {
devices = *((u32 *) obj->buffer.pointer);
}

Expand Down

0 comments on commit bf748f3

Please sign in to comment.