Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp286805lqp; Mon, 10 Jun 2024 04:23:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiCFGcIGta2VEzg4fbSLL5nIYOJAJgcD/EG3FFrgvIc+UYUfM0/W8gHEDlPQLHk8k1pK6hOhnulnWViFx8RjFXVXLNPbbtGQkYi+yBWA== X-Google-Smtp-Source: AGHT+IEB/uZ7sRUZJJWGBeUGcuwEavwR8uIyM/Lnq0zICEBF12muPA/N63NRlV4xW61wwqS7bF6W X-Received: by 2002:a17:906:fcdc:b0:a6f:1106:5dd1 with SMTP id a640c23a62f3a-a6f11065e36mr265189766b.2.1718018592177; Mon, 10 Jun 2024 04:23:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718018592; cv=pass; d=google.com; s=arc-20160816; b=r8w5jztLw1741R7sak5YyOARakt5JvBuo9sANUy4t2LCZ6ikYonzIPWm+NgFsW+4Kr w343VTJ5IvAohnKWK7clSgDsWU8vHITnjC1lI/zVjR5XdPWV7eWEkLGV1pMFckHVyEpG lrh1EgKdrWrd2PIAHDmGSUcOn3I+/5X/v72TIH8BvkVmOShlqhYOegBk2WNjIKdlU6Eh pz3PKkyfBvfeI48UCBzJEQIOGBMeooeMsoubpVxaMlJAyf2kYODWlKzyXU6CYGemPNIB egwpxf+TJWoa2gf4cmUAE8vd3d595ltnzlyotFog1s04XRA7SkhZ67x06KqLfm2NHtUh BHjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xowKy7ttHfMUaUM+uHdbEw6XGE6pguNqiKHZGtqPbXQ=; fh=ySb84WZQtKYbgI2JbDuTf47zIqsZx/Hw7Gt943EauRo=; b=fIDvuh0e6+wqVkRZZZoyvTQZGo+A30mGjT1ooXYkUOgi09OXuAeXerYAYiYbq9klEz 9HXa83EDVGNZPJaQMAXDeq00TYnF/dq2Hbo2OepoDVmVZQaUS0nWOFdYcc2aRzY6FVqb dCSDdHH9yoicXO6v95+xPA4knZDeqX6HHLzqEYKMxgpK8+QDK/ncb9SPo1AqeRqXaQB3 G5BLxvZAXukTcDVbHDzhWipzrgkcvRNSKPU+muQuzSnPyAMZ6uo5ioqIBztVLcckMLgY V2GkjskfPl5z1eUdAMuG2itkVVN+MyoXMMQhGJJkFeVjHV5+z/+k6WxLnm4SFhfJEsxK ZSXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dfcb4ZPx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f01d3aac0si236484466b.879.2024.06.10.04.23.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 04:23:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dfcb4ZPx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DFD321F21872 for ; Mon, 10 Jun 2024 11:23:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43E497C6D4; Mon, 10 Jun 2024 11:23:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dfcb4ZPx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 657A96BFCA for ; Mon, 10 Jun 2024 11:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718018585; cv=none; b=i9PFbMCG69d0Sqj8bA9aljFZxwWcJe2kwIG4TiA0FNlmnhWCTgKUW9TXX0surPttm3LyAHvkJbxSQ2ISlIeKXbEyzBgDgkF3X2pL89P7LHFEoMStvhI1SYGf1t6nXOHVZrxOJB9KV+WMgkecjg+p62PSI4EOv718mclsgyWI3sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718018585; c=relaxed/simple; bh=xowKy7ttHfMUaUM+uHdbEw6XGE6pguNqiKHZGtqPbXQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mdFHnGwaahdla19hbSDw/0+iU5Rvij+c4q4sGdeQapxXtNAuu9o1cwBHqCoNHrIFKqoD3zGeZVZRD8qztgsLnmL+hfi3Ig23f8pblnghqI8inme9kj1aXAy4BEYNAvw8XYElmaTXPr4kqv5X27oFYFa68F6QdHEmDSeYTN1lKuQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dfcb4ZPx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80378C2BBFC; Mon, 10 Jun 2024 11:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718018584; bh=xowKy7ttHfMUaUM+uHdbEw6XGE6pguNqiKHZGtqPbXQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dfcb4ZPx8lK0+yp2nxm1VEMH6eyt0gArCyyHnUbzNGjuRrzqbsdAmQsMjiAZJE6ge UuagH0heWS4ky5pn9iyhGhy0nKJEZSK3GWXOVvPjW+k4EUeZeYHU3ckiUkjN5GwyJO SQPVrxLOq9Sea2uwSeHBbF3SOQI57J6wKx/nnrodhkUddRp829osEuX+GV1WDUExHi HoAetAhuiNOaj/2A/bZ+aSRfGjEvIjYN/jZLHP7G+BmQPZAuofNaRdvvMP9d55d02o S9Xjot9PhoTDl5XTR47sacTcAG0qKEYsaCzqbTMNIHm/AVlzAGGYIZf4+TrXAKNKmY 8VH7UukUcdffA== Date: Mon, 10 Jun 2024 13:23:02 +0200 From: Maxime Ripard To: Adam Miotk Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Smitha T Murthy , Deepak Pandey Subject: Re: [PATCH] drm/bridge/panel: Fix runtime warning on panel bridge release Message-ID: <20240610-gigantic-devious-tuna-e8a4e8@houat> References: <20240610102739.139852-1-adam.miotk@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cz6p5zxgrj6zwsge" Content-Disposition: inline In-Reply-To: <20240610102739.139852-1-adam.miotk@arm.com> --cz6p5zxgrj6zwsge Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 11:27:39AM GMT, Adam Miotk wrote: > Device managed panel bridge wrappers are created by calling to > drm_panel_bridge_add_typed() and registering a release handler for > clean-up when the device gets unbound. >=20 > Since the memory for this bridge is also managed and linked to the panel > device, the release function should not try to free that memory. > Moreover, the call to devm_kfree() inside drm_panel_bridge_remove() will > fail in this case and emit a warning because the panel bridge resource > is no longer on the device resources list (it has been removed from > there before the call to release handlers). >=20 > Signed-off-by: Adam Miotk I've added a Fixes tag and applied to drm-misc-fixes, thanks! Maxime --cz6p5zxgrj6zwsge Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZmbiFQAKCRDj7w1vZxhR xXDaAQCXTckO6Gt0AQM1LwNgDv8fB3Wis8cB4feQmE+ZtENTUQEAzZxNfc0dd2KH uUb331tpnU9u+D8haTTvx1aghreDcwo= =LhxN -----END PGP SIGNATURE----- --cz6p5zxgrj6zwsge--