Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88355
b: refs/heads/master
c: f0a37e0
h: refs/heads/master
i:
  88353: 8158863
  88351: 977ea2f
v: v3
  • Loading branch information
Chuck Ebbert authored and Linus Torvalds committed Apr 16, 2008
1 parent e4864ee commit bfdf058
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d1e7780638a9192f15caf590e0081bf915fdef71
refs/heads/master: f0a37e008750ead1751b7d5e89d220a260a46147
7 changes: 4 additions & 3 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,11 @@ int acpi_bus_receive_event(struct acpi_bus_event *event)
}

spin_lock_irqsave(&acpi_bus_event_lock, flags);
entry =
list_entry(acpi_bus_event_list.next, struct acpi_bus_event, node);
if (entry)
if (!list_empty(&acpi_bus_event_list)) {
entry = list_entry(acpi_bus_event_list.next,
struct acpi_bus_event, node);
list_del(&entry->node);
}
spin_unlock_irqrestore(&acpi_bus_event_lock, flags);

if (!entry)
Expand Down

0 comments on commit bfdf058

Please sign in to comment.