Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275023
b: refs/heads/master
c: 581de59
h: refs/heads/master
i:
  275021: 3c34d82
  275019: 0d87f40
  275015: f146c1c
  275007: f76b289
v: v3
  • Loading branch information
Thomas Meyer authored and Len Brown committed Nov 7, 2011
1 parent e82eb13 commit 773910f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 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: f7f71cfbf0c276ee3d8d856d0f35a41aed997fa4
refs/heads/master: 581de59e8dff8eaa52809e768a585e9ef336aa4a
11 changes: 5 additions & 6 deletions trunk/drivers/acpi/acpica/hwregs.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,16 @@ acpi_status acpi_hw_clear_acpi_status(void)

status = acpi_hw_register_write(ACPI_REGISTER_PM1_STATUS,
ACPI_BITMASK_ALL_FIXED_STATUS);

acpi_os_release_lock(acpi_gbl_hardware_lock, lock_flags);

if (ACPI_FAILURE(status))
goto exit;
if (ACPI_FAILURE(status)) {
goto unlock_and_exit;
}

/* Clear the GPE Bits in all GPE registers in all GPE blocks */

status = acpi_ev_walk_gpe_list(acpi_hw_clear_gpe_block, NULL);

exit:
unlock_and_exit:
acpi_os_release_lock(acpi_gbl_hardware_lock, lock_flags);
return_ACPI_STATUS(status);
}

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,13 +1062,12 @@ static void acpi_add_id(struct acpi_device *device, const char *dev_id)
if (!id)
return;

id->id = kmalloc(strlen(dev_id) + 1, GFP_KERNEL);
id->id = kstrdup(dev_id, GFP_KERNEL);
if (!id->id) {
kfree(id);
return;
}

strcpy(id->id, dev_id);
list_add_tail(&id->list, &device->pnp.ids);
}

Expand Down

0 comments on commit 773910f

Please sign in to comment.