From b0bc6a0e113a0a8b879cbcc12868e1e24ce06a58 Mon Sep 17 00:00:00 2001 From: Kenji Kaneshige Date: Mon, 29 Sep 2008 17:37:05 +0900 Subject: [PATCH] --- yaml --- r: 116730 b: refs/heads/master c: bd1d9855be3ab8a5c2b31053d464b7fe63e6963b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/pci/hotplug/pci_hotplug_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 77fad806bf0a..5488398cd0cd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e5665a45fa28d0114f61b5d534a3b2678592219d +refs/heads/master: bd1d9855be3ab8a5c2b31053d464b7fe63e6963b diff --git a/trunk/drivers/pci/hotplug/pci_hotplug_core.c b/trunk/drivers/pci/hotplug/pci_hotplug_core.c index 27d2b6fe5d53..2e6c4474644e 100644 --- a/trunk/drivers/pci/hotplug/pci_hotplug_core.c +++ b/trunk/drivers/pci/hotplug/pci_hotplug_core.c @@ -102,7 +102,7 @@ static int get_##name (struct hotplug_slot *slot, type *value) \ { \ struct hotplug_slot_ops *ops = slot->ops; \ int retval = 0; \ - if (try_module_get(ops->owner)) \ + if (!try_module_get(ops->owner)) \ return -ENODEV; \ if (ops->get_##name) \ retval = ops->get_##name(slot, value); \