Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254820
b: refs/heads/master
c: 0401846
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Matthew Garrett committed Jul 11, 2011
1 parent 7e33b8a commit 6b7d2e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: b486742a12a474a01d1acb1a5924af11d9b32b68
refs/heads/master: 0401846c339fbdfb9bd822d83b43e8a9f7d072a4
11 changes: 6 additions & 5 deletions trunk/drivers/platform/x86/hp-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ static int hp_wmi_perform_query(int query, int write, void *buffer,
};
struct acpi_buffer input = { sizeof(struct bios_args), &args };
struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL };
u32 rc;

if (WARN_ON(insize > sizeof(args.data)))
return -EINVAL;
Expand All @@ -224,13 +225,13 @@ static int hp_wmi_perform_query(int query, int write, void *buffer,
}

bios_return = (struct bios_return *)obj->buffer.pointer;
rc = bios_return->return_code;

if (bios_return->return_code) {
if (bios_return->return_code != HPWMI_RET_UNKNOWN_CMDTYPE)
pr_warn("query 0x%x returned error 0x%x\n",
query, bios_return->return_code);
if (rc) {
if (rc != HPWMI_RET_UNKNOWN_CMDTYPE)
pr_warn("query 0x%x returned error 0x%x\n", query, rc);
kfree(obj);
return bios_return->return_code;
return rc;
}

if (!outsize) {
Expand Down

0 comments on commit 6b7d2e1

Please sign in to comment.