Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59662C43334 for ; Fri, 10 Jun 2022 09:31:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C61C612B5E6; Fri, 10 Jun 2022 09:31:19 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by gabe.freedesktop.org (Postfix) with ESMTPS id 564DA12B227 for ; Fri, 10 Jun 2022 09:31:15 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AD69C5C0061; Fri, 10 Jun 2022 05:31:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 10 Jun 2022 05:31:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1654853474; x=1654939874; bh=fB 1vCTEe4pNuAubp5/iqGuc2S2GY0D48ZvzVNFH8eY0=; b=oG2RqC5xX51QpqKJb1 TVb8f9/EVYHEfvG9I0bf//Px6MrK+56VcCQnpQTklCIPyoyT3NTZ5zftpxYyslC0 5Q1AU/KuB43ItdcSnDjqrUGv8pw9pr/PuEykxpnV96BPDIOg8UGlIApARknH9pl0 g1x0AT34wHKdlUhctD80njUL/0pxfEp4cMOgJGZrMIj07eJ1VyssO98pJmzISgFv S26QhqBk4UxAc3qc5muFOR0tN9rj4fI9I8mm6bsGRueOTTcFWC2KPMf12pBm7Utg TohNTuOYZVxL7AVtEWG1cFFhPi7sKR8s0Fzof6VbWsPK2dybdBVpI25vewTcO92S uCVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1654853474; x=1654939874; bh=fB1vCTEe4pNuA ubp5/iqGuc2S2GY0D48ZvzVNFH8eY0=; b=QsdkWmp+Ef6iPGHGIV3d1mBsrPpLs SyTH34yP5SmPkzWd3+6j7Qnynna6fZb+Rr+OqKGNZUn/XnUtExlllb3Ctnie8HgX aiLSjZSwbWq/Y0bNZJI5yiTKcSF6bvSihHqWOy9SCt2DDHJkOyocC0pB4w59rNGo w7UTfuf91G4ZL7SenU+offk+4cya+jeWZ85hikCzfNxJyFjsC4ZGffTt5JE4FfZ4 Hjy0c3s3My0gLZyT/uZtpsJlT32OptXbskFuZPNthdDxgqWJMTk3JLFPZZrg9wJB T/W5A+1Dy3tQoq9jbfMJZUoiz1PRSdd3RRmcSs6m0TEgDuSzPSZT4a4/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudduuddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeelkeefteduhfekjeeihfetudfguedvveekkeetteekhfekhfdtlefgfedu vdejhfenucevlhhushhtvghrufhiiigvpedvtdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Jun 2022 05:31:14 -0400 (EDT) From: Maxime Ripard To: Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Subject: [PATCH 61/64] drm/vc4: perfmon: Add missing mutex_destroy Date: Fri, 10 Jun 2022 11:29:21 +0200 Message-Id: <20220610092924.754942-62-maxime@cerno.tech> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220610092924.754942-1-maxime@cerno.tech> References: <20220610092924.754942-1-maxime@cerno.tech> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" vc4_perfmon_open_file() will instantiate a mutex for that file instance, but we never call mutex_destroy () in vc4_perfmon_close_file(). Let's add that missing call. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_perfmon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/vc4/vc4_perfmon.c b/drivers/gpu/drm/vc4/vc4_perfmon.c index 18abc06335c1..531b0e7ba035 100644 --- a/drivers/gpu/drm/vc4/vc4_perfmon.c +++ b/drivers/gpu/drm/vc4/vc4_perfmon.c @@ -95,6 +95,7 @@ void vc4_perfmon_close_file(struct vc4_file *vc4file) idr_for_each(&vc4file->perfmon.idr, vc4_perfmon_idr_del, NULL); idr_destroy(&vc4file->perfmon.idr); mutex_unlock(&vc4file->perfmon.lock); + mutex_destroy(&vc4file->perfmon.lock); } int vc4_perfmon_create_ioctl(struct drm_device *dev, void *data, -- 2.36.1