From patchwork Mon Oct 9 16:41:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 731021 Delivered-To: patch@linaro.org Received: by 2002:a5d:574c:0:b0:31d:da82:a3b4 with SMTP id q12csp1313058wrw; Mon, 9 Oct 2023 09:47:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHn4AJTR/GBoxtMnKH9h7BKN/BfvqCrlQHPTXhStzuIPKPzyxB0ACgmWj6amlYgNgBhuavO X-Received: by 2002:a05:620a:458e:b0:774:244c:8b2c with SMTP id bp14-20020a05620a458e00b00774244c8b2cmr20682922qkb.14.1696870065424; Mon, 09 Oct 2023 09:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696870065; cv=none; d=google.com; s=arc-20160816; b=Q3vK/rtVxbESnhO5qlOf8BlOHGSq6Uoq5X8jjv5uqcOsc4J1Kk/69c7ZXAhxV1juQ/ 2s2u6/IcW4gcHPHp1Se16WCa9Ivf95DB0jlJLhheS/+ahivb4q6qYO0HZrzOhjRCsyPB lNVdhmMoUfFIiIQLq/yqaTteq1R8Fhur4kqSdHuRZJubmEDRYCdnwcHslY+k9hHJij4t iDNNEiAoujS2ZET8DSyezTYx9k6Epie3xDNhmT9AM1TOxI1C2fOx2w7LUzhYLirdXN74 hCGXrltrrdSgV2c9bt5msUu4EmEpz07aoLcfNoDsh5Z70MQYwuzRI02v+rEhJiZHYORP Yu0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6tkbJLFSKCFqBt7eF2KdGUHAT+NPxj+IrJR+AQ70tYE=; fh=hH+hY2AOPCtQWK44NzX0H5SWS0EYJFmL3o+I0zvKKVU=; b=Uj4BlU+czdxq4/lRWh18h+9UTfDwn4rZnsak/U4UpSA+evsV/RmsH2nBTQ9wyh/IVV 4t3YBytN438DX/TGnRWJSLq4284tQkLlgOf6AHHy2F7J5mQUnlZn8ML4Pfc//uMp1vht HG9gmr50ObPRFTuRqkvQmOfAUVeGv2vY0AIEj1KOSHrKZwpvEQskx3Ui96x8LF1hd3M1 ORDlhJbvCMG0HHg4gw4Fp10YpKdJSzhJwp1D2a8q6+IKohETYd6Uxufeb8jvLMNrqJrQ S6JnC3URtadnKMFGtaA7lG8pJ/enbi03ynDl1ZdVk0Jkeg0M0LVD7bimRRK79mNzKlo0 z9vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gEPQOFgw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k21-20020a05620a415500b007758c7aeafbsi6560279qko.696.2023.10.09.09.47.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2023 09:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gEPQOFgw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qptPR-0004OO-74; Mon, 09 Oct 2023 12:47:09 -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 1qptOt-0003BP-M6 for qemu-devel@nongnu.org; Mon, 09 Oct 2023 12:46:41 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qptOi-0003VV-WA for qemu-devel@nongnu.org; Mon, 09 Oct 2023 12:46:30 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-405497850dbso44438845e9.0 for ; Mon, 09 Oct 2023 09:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696869972; x=1697474772; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6tkbJLFSKCFqBt7eF2KdGUHAT+NPxj+IrJR+AQ70tYE=; b=gEPQOFgw6dKwgtTEQ9yulODQCWAXuTWPL+7uRcgBQZF/79MclLHI1M0+rpZ9XROpA5 m+hbLUrwTUILYo1/di4SSAW3V9nn5HUpX/xwcXzCpyy0/zDqmpB4njTQqCBoL/4c+2qQ b25gNrxbpAgH0abvd0dd4ftG148D1BOEifGlWyRrm/WaWg3XZ9kxjV41k4bklyIriT3a jLGXO5DvyxidagQ+8ygKVooUqLj3veElresb6WOE2JYQyaVS9yZHC1TG9FzyrccXXb5i L9HR9NptkjujN5DHLoo/a3NoYUINZA7P7XT6BAFJs13dRgylkpQbbcrdGraENPFeNuX2 F0kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696869972; x=1697474772; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6tkbJLFSKCFqBt7eF2KdGUHAT+NPxj+IrJR+AQ70tYE=; b=g8bu7Y2Vx2HdKnq3OJnMNYQAqzjSk3KqYATwBZsXJ0S8h2SfTGYFaTyy7XnW7oc07C JmT7q/R8lH9AZfklvawQUGQ3JC/78jeiFlEW7M94+9ATZRpcu2YBzvsFVGYeLLchBRXY P/Q+oUN/81ZljN79Ro1owTVY5ApIoD2cQdX6AUY4HFOkJCTin047TnCv55SBFKtimAse KI+cwdQIBq5V/xB0atZsjVnR6e1KU8S3rcsWNWD5s6Eddx5rVUK6cI7f25OREWI53Uvj 186aRSN6ma8rvn/nOEWfvc9h200VyHqkBnrR08e+9/A54/CIutVmzgzC/EMvN4QmOE1+ 2alw== X-Gm-Message-State: AOJu0YxOdfdqcu9G5cUe/twF3XnTdwzWN8O4Wij9HbymZAsBsu4BlQdl 9bnCvTGWYkdyJgqu8YbbTyqWXA== X-Received: by 2002:a05:600c:2054:b0:3fe:687a:abb8 with SMTP id p20-20020a05600c205400b003fe687aabb8mr14478186wmg.7.1696869972151; Mon, 09 Oct 2023 09:46:12 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n16-20020a05600c3b9000b0040684abb623sm14062506wms.24.2023.10.09.09.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 09:46:11 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 122C11FFD0; Mon, 9 Oct 2023 17:41:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Xiaojuan Yang , =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= , Bastian Koppelmann , Brad Smith , Radoslaw Biernacki , David Hildenbrand , Cleber Rosa , Ilya Leoshkevich , qemu-riscv@nongnu.org, Daniel Henrique Barboza , Alexandre Iooss , Nicholas Piggin , Bin Meng , Leif Lindholm , Paolo Bonzini , Eduardo Habkost , Alistair Francis , qemu-ppc@nongnu.org, John Snow , Liu Zhiwei , qemu-arm@nongnu.org, Wainer dos Santos Moschetta , Palmer Dabbelt , Peter Maydell , Yanan Wang , Weiwei Li , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Marcel Apfelbaum , Beraldo Leal , Yoshinori Sato , Mahmoud Mandour , Richard Henderson , Song Gao , Marcin Juszkiewicz , qemu-s390x@nongnu.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 25/25] contrib/plugins: fix coverity warning in hotblocks Date: Mon, 9 Oct 2023 17:41:04 +0100 Message-Id: <20231009164104.369749-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231009164104.369749-1-alex.bennee@linaro.org> References: <20231009164104.369749-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Coverity complains that we have an unbalance use of mutex leading to potential deadlocks. Fixes: CID 1519048 Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé --- contrib/plugins/hotblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/plugins/hotblocks.c b/contrib/plugins/hotblocks.c index 6b74d25fea..4de1b13494 100644 --- a/contrib/plugins/hotblocks.c +++ b/contrib/plugins/hotblocks.c @@ -69,8 +69,8 @@ static void plugin_exit(qemu_plugin_id_t id, void *p) } g_list_free(it); - g_mutex_unlock(&lock); } + g_mutex_unlock(&lock); qemu_plugin_outs(report->str); }