From nobody Fri Apr 3 17:34:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1774284805; cv=none; d=zohomail.com; s=zohoarc; b=JgsWGWmSYlssQyJDmL9I1qVn5nyTjeWqH+tVES2RZN3m72cdwnVdaD8bKcM3VGmktZXnDd4qImPpVONJlfWtjRsfIrxYdgCowuBK9yhhVbZ2GhfQJSZavWnpmOSZR0nhEgL8EdOhkvt0BiJ/qQIWVgLcLOrwWmJBsZ/+r4Vt2rw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1774284805; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=LV22NE8aLPvFdDT+Zc6yYExLLq20+KDgYvF7kCb0uns=; b=iRADKcXrnUa6e+jGxNtQ13lpbwX7AyzFGSsxhqtkIChKKdcxyYNKiRcxJ+YT68aC4KEEL7ePq03B2aNpMVOCK+L2QV8r9mBNg+HgKmZrdEdGMEgozojHyrREbVifN9exbaTgexasPrLTZ8m6eTRIi/Whyw1H5oUW7t2SYmypQTM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1774284805235382.22069621417256; Mon, 23 Mar 2026 09:53:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w4iWP-0001W7-C2; Mon, 23 Mar 2026 12:52:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w4iWB-0001QN-VJ for qemu-devel@nongnu.org; Mon, 23 Mar 2026 12:52:49 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1w4iWA-0000TL-FW for qemu-devel@nongnu.org; Mon, 23 Mar 2026 12:52:43 -0400 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-43b7ff8fe92so223386f8f.0 for ; Mon, 23 Mar 2026 09:52:42 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b64703c7fsm30639153f8f.23.2026.03.23.09.52.39 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 23 Mar 2026 09:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1774284760; x=1774889560; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LV22NE8aLPvFdDT+Zc6yYExLLq20+KDgYvF7kCb0uns=; b=im+i33rdUjgAn8hwDyy9r+ZPP5fdPCBTS7IhtAGpwhJcx24pJCzDIKDlILBmANx5Bb jcH33OdlqugXSfMEgMLKW+LNBnkf2JXcaW2JdcC0gNQIi3skDRDhcjr8omNd2m9k8FFh F4RwKBgizpSKfSBZan2u1m0O2leJkWVz5wE1cL5KCeF836+XCj9jebuU0vM1f4JQsN3S J9BYMUibuaMQ/WRv76kHpT0/6lO+Ukc1T657c4EySYj++JpOb501YfAqAmesuevxLNFR DKCyLecMmXX2CVvQ/nvG+iKHOQuGsHufbrfsv/epAzE500cYS2Pe36Ib3zMx70Ly9AbJ cNIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774284760; x=1774889560; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=LV22NE8aLPvFdDT+Zc6yYExLLq20+KDgYvF7kCb0uns=; b=iKsUrBdjzBxIcfftmEqd/rIMVzhc2W1rWmtNgxud7bjRC/Nv0x3vBGNXXAYo9UqY8t CSTuhkI9rXqBh5BUB+EzrKO6OZNSSpjgq0BkbvQ82wYmBQpf3xTxa6lbqM0aPamPyz7O jutXHTW72Zb1HcXDDKIe6M1xDSJU2/88PuBYP8qOkAdF16Y7Bod+NJuwUEjggx9B/drz iIfnYW7RML/SyD5f/v4V5B0t/nRgMKpgCFbhIiJ36+y1Hm8e9lLzszpWUcWlNVq9TZvE eUADES1l5kkCS6WW2vGN8JpbrlhmCm096iXdpdTbRp51kI4SYt0UqMKYotnKwBE0XFbO atgg== X-Gm-Message-State: AOJu0Yz2CF/qVCvS1ZK1tIp65P84iZijToZnhkXmI1cSe0pnITCbeuyi JeFF5rBKGqXJmJBd9BR4WSZ8nQGACudUKK4uTBhpdEbBfl+2+wO6SSxO1rcgih1FeEA2hRZomUR Ixe5+7ao= X-Gm-Gg: ATEYQzyJQOgKtavCqq7lrwlKFZwPCR0S7KLNH4NHiF1Nw3fBp05HxZYElz0lgXRzA+6 xH6cT1OiPFr4wLjE3nDpAl4HCRhpz1bLYxolLwhGqBe2KBT1Fz/b3AcW3NrDcOuiPXSQyyjlJqa Fvr2+A9gSonuydprEjWzGcMB1va84lve+vefQsr3Fngz9s4nlVeIBoC91j+IXvPSQwi6JzuXNE3 OHpcLxcO7wJiZHvLB9x2E3ayADgQgEiANDYujqILOKTk/HqEw5h4gb3seFbzYHTwgRIAobhVJZH RSs9Lw7fl9HlK6O7V/We/VvidGmXGih34UtL6+IBC0LuR1BODo026odnyTNvqKQmI/7lYxBI/iR lPoZzC5eWewRuv1dTjokLYQu3w7EKmoWGRkCtOvDrCywcxTQok/vvDLplMgtmQbRlYkJfjuA597 oM2/DaX7jlJif4vzQBLtP+oj1+ZbBcT5xp5+DW54eIHeEqFSazmNHNllkLIAtG427kkHd86jBOl EZ/Ik4fD7E= X-Received: by 2002:a05:6000:4024:b0:43b:3b80:6781 with SMTP id ffacd0b85a97d-43b6428b67fmr21003423f8f.49.1774284760452; Mon, 23 Mar 2026 09:52:40 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 03/27] hw/char/virtio-console: clear dangling GLib event source tag Date: Mon, 23 Mar 2026 17:51:54 +0100 Message-ID: <20260323165218.96607-4-philmd@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323165218.96607-1-philmd@linaro.org> References: <20260323165218.96607-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1774284806368154100 From: Matthew Penney Clear dangling GLib event source tag when virtio-console is unrealized. This prevents a stale tag from being used, and maintains consistency with the rest of virtio-console. Signed-off-by: Matthew Penney Reviewed-by: Marc-Andr=C3=A9 Lureau Message-ID: <20260305213308.96441-1-matt@matthewpenney.net> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/char/virtio-console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/virtio-console.c b/hw/char/virtio-console.c index 25db0f019b8..efe7cd6772e 100644 --- a/hw/char/virtio-console.c +++ b/hw/char/virtio-console.c @@ -257,7 +257,7 @@ static void virtconsole_unrealize(DeviceState *dev) VirtConsole *vcon =3D VIRTIO_CONSOLE(dev); =20 if (vcon->watch) { - g_source_remove(vcon->watch); + g_clear_handle_id(&vcon->watch, g_source_remove); } } =20 --=20 2.53.0