Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361903
b: refs/heads/master
c: b8b6611
h: refs/heads/master
i:
  361901: 8a73a23
  361899: 4afd147
  361895: 33d044b
  361887: e4c8160
v: v3
  • Loading branch information
Yinghai Lu authored and Rafael J. Wysocki committed Mar 26, 2013
1 parent 835620d commit f3f639f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: aaf9d93be71c68558c25b4052ac979ee6b7eb809
refs/heads/master: b8b6611048b7b57b86fbdc9153649ad4dc52135f
9 changes: 7 additions & 2 deletions trunk/drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ static void handle_root_bridge_insertion(acpi_handle handle)

static void handle_root_bridge_removal(struct acpi_device *device)
{
acpi_status status;
struct acpi_eject_event *ej_event;

ej_event = kmalloc(sizeof(*ej_event), GFP_KERNEL);
Expand All @@ -661,7 +662,9 @@ static void handle_root_bridge_removal(struct acpi_device *device)
ej_event->device = device;
ej_event->event = ACPI_NOTIFY_EJECT_REQUEST;

acpi_bus_hot_remove_device(ej_event);
status = acpi_os_hotplug_execute(acpi_bus_hot_remove_device, ej_event);
if (ACPI_FAILURE(status))
kfree(ej_event);
}

static void _handle_hotplug_event_root(struct work_struct *work)
Expand All @@ -676,8 +679,9 @@ static void _handle_hotplug_event_root(struct work_struct *work)
handle = hp_work->handle;
type = hp_work->type;

root = acpi_pci_find_root(handle);
acpi_scan_lock_acquire();

root = acpi_pci_find_root(handle);
acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);

switch (type) {
Expand Down Expand Up @@ -711,6 +715,7 @@ static void _handle_hotplug_event_root(struct work_struct *work)
break;
}

acpi_scan_lock_release();
kfree(hp_work); /* allocated in handle_hotplug_event_bridge */
kfree(buffer.pointer);
}
Expand Down

0 comments on commit f3f639f

Please sign in to comment.