Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-05-17 16:41:09 +0200
committerTakashi Iwai <tiwai@suse.de>2019-05-17 16:41:11 +0200
commitb227c8975d844369749cd5020cb4317563224af5 (patch)
treeb44cf9023d22ad9825ce05b431914228c75c9da3
parent5978f7142f6f536bb68ffacc14955d821bcbff51 (diff)
ACPI / utils: Drop reference in test for device presence
(bsc#1051510). suse-commit: 4cbe52ddfc7bbde9af8a8276fb64045562349e88
-rw-r--r--drivers/acpi/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 0a9e5979aaa9..5021f6b71cd7 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -798,6 +798,7 @@ bool acpi_dev_present(const char *hid, const char *uid, s64 hrv)
dev = bus_find_device(&acpi_bus_type, NULL, &match,
acpi_dev_present_cb);
+ put_device(dev);
return !!dev;
}
EXPORT_SYMBOL(acpi_dev_present);