aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/acpica/nsinit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/contrib/dev/acpica/nsinit.c b/sys/contrib/dev/acpica/nsinit.c
index 207365c0bddd..a11a67520a7c 100644
--- a/sys/contrib/dev/acpica/nsinit.c
+++ b/sys/contrib/dev/acpica/nsinit.c
@@ -515,6 +515,13 @@ AcpiNsInitOneDevice (
}
else
{
+ /* Delete any return object (Especially if ImplicitReturn is enabled) */
+
+ if (Pinfo.ReturnObject)
+ {
+ AcpiUtRemoveReference (Pinfo.ReturnObject);
+ }
+
/* Count of successful INIs */
Info->Num_INI++;