Skip to contentSkip to conversation

dbus: Fix condition for invalidating path

PATCH New Luiz Augusto von Dentz 1 participant 1 message Apr 1, 2025 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 dbus: Fix condition for invalidating path

From: Luiz Augusto von Dentz <[email protected]>

This fixes the condition introduced in cdd02afbb7ef ("dbus: Fix add invalid memory during interface removal") which was reversed while applying the original fix.

---
 gdbus/object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
gdbus/object.c +1 -1
index 54e04b983a98..f8c694aaffdf 100644
@@ -810,7 +810,7 @@ static struct generic_data *invalidate_parent_data(DBusConnection *conn,
 	if (child == NULL || g_slist_find(data->objects, child) != NULL)
 		goto done;
 
-	if (!g_slist_find(parent->objects, child))
+	if (g_slist_find(parent->objects, child))
 		goto done;
 
 	data->objects = g_slist_prepend(data->objects, child);
Signature · 1 line
2.48.1