Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322880
b: refs/heads/master
c: f661848
h: refs/heads/master
v: v3
  • Loading branch information
Jiang Liu authored and Matthew Garrett committed Sep 13, 2012
1 parent ab2a7db commit b41e31e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 3f5449bf39896587ca9f87b76832c5aa30f0f5c7
refs/heads/master: f661848b74b33069b0b7068c414bd282c407781d
10 changes: 6 additions & 4 deletions trunk/drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,12 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle)

if (!bus) {
pr_warn("Unable to find PCI bus 1?\n");
goto out_unlock;
goto out_put_dev;
}

if (pci_bus_read_config_dword(bus, 0, PCI_VENDOR_ID, &l)) {
pr_err("Unable to read PCI config space?\n");
goto out_unlock;
goto out_put_dev;
}

absent = (l == 0xffffffff);
Expand All @@ -627,15 +627,15 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle)
absent ? "absent" : "present");
pr_warn("skipped wireless hotplug as probably "
"inappropriate for this model\n");
goto out_unlock;
goto out_put_dev;
}

if (!blocked) {
dev = pci_get_slot(bus, 0);
if (dev) {
/* Device already present */
pci_dev_put(dev);
goto out_unlock;
goto out_put_dev;
}
dev = pci_scan_single_device(bus, 0);
if (dev) {
Expand All @@ -650,6 +650,8 @@ static void eeepc_rfkill_hotplug(struct eeepc_laptop *eeepc, acpi_handle handle)
pci_dev_put(dev);
}
}
out_put_dev:
pci_dev_put(port);
}

out_unlock:
Expand Down

0 comments on commit b41e31e

Please sign in to comment.