From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E6B4AC44507 for ; Fri, 17 Jul 2026 08:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:References:In-Reply-To: Subject:To:From:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kVo9IdfOMER9kgTwfBlWInIUa51U3ofUeOr7bQBtlLU=; b=y8OyAcvzXwmnHz 9R/JxB888l09oNtB2C5Aza/wXMya+kahQj3OBc4Tl7/itG/PsE20KzMtTdvoZGg6W3Z3ADdeGYfSn rFmRPaDbhkBETZpKTeVE2fiFzN8TuocghOv/d33M3z4g1eyTZg7QHy8ZdlWUBCK4klAtYPUqw+UnC UuUZvPDw1jT1TfottZelaGJd5upGU0Jk70QX+rYGRlR8IoudWbx0dKqO5wKw1klIpUpSzi+ROUnas eQvZ7tH2k+aVBzayxtinNIQEoMzVlLcQiNhcvTtch5bignkBe5rQr0U1LaEjSdfBDtY74rZEvIT3K EJWEpo3rE3Q7xZtl+7lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wkeGV-00000001ibN-1hvm; Fri, 17 Jul 2026 08:49:51 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wkeGU-00000001ibA-24sZ; Fri, 17 Jul 2026 08:49:50 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id C7E8543342; Fri, 17 Jul 2026 08:49:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 114FB1F000E9; Fri, 17 Jul 2026 08:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784278189; bh=cYuZ+CRFk03hiWJ0HC3KigHuxua0YjUKs+2Dja/OrBg=; h=Date:From:To:Subject:In-Reply-To:References:Cc; b=DgFeC5GLqSzOP+GCjhyeXf5hR/vY/98UPz4EyHLu+56RxHNeDjfoHFTij4I7lYsu+ a6JlhCp2Q5K0vqIDiJ87VcMZqSobvY1akK3ZofSCKuk8Pi680uGfRIO9r2GtHepbn4 KlTySY//ivAWf8NMV0pVuEWNG4M1GOTk3L+WEo9JaJ3k26eDKyUY3vl2uTk0L0PnIR CZvJjJXDCJjqHRtvo5pJPug5oG+hgcNp2R7Oww0gcS5n0etHt2gvNuAxHvrbBw1GOv p7FjL7idnh/4PoMwLgvJ+TOJ/+5fblnzGrSw2UXOgaM1hS2L5Rs5x2aaU8ODu5yMbU cKwvVjEbSxgpA== Message-ID: <505844fbd2c5c8ab07153348d20b708c@kernel.org> Date: Fri, 17 Jul 2026 08:49:45 +0000 From: "Maxime Ripard" To: "Albert Esteve" Subject: Re: [PATCH v2 3/5] drm/panel: of_drm_find_panel() return a counted reference In-Reply-To: <20260713-drm_refcount_wiring-v2-3-d3bb61f4bd4d@redhat.com> References: <20260713-drm_refcount_wiring-v2-3-d3bb61f4bd4d@redhat.com> Cc: dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, "Alain Volmat" , "Alexandre Torgue" , "Alim Akhtar" , "Alison Wang" , "Andrzej Hajda" , "Andy Yan" , "Biju Das" , "Chen-Yu Tsai" , "David Airlie" , "Fabio Estevam" , "Frank Li" , "Geert Uytterhoeven" , =?utf-8?b?SGVpa28gU3TDvGJuZXI=?= , "Inki Dae" , "Jagan Teki" , "Jernej Skrabec" , "Jessica Zhang" , "Jingoo Han" , "Jonas Karlman" , "Jonathan Hunter" , "Jyri Sarha" , "Kieran Bingham" , "Krzysztof Kozlowski" , "Kyungmin Park" , "Laurent Pinchart" , "Laurent Pinchart" , "Laurentiu Palcu" , "Linus Walleij" , "Luca Ceresoli" , "Lucas Stach" , "Maarten Lankhorst" , "Magnus Damm" , "Marek Szyprowski" , "Marek Vasut" , "Maxime Coquelin" , "Maxime Ripard" , "Mikko Perttunen" , "Neil Armstrong" , "Paul Cercueil" , "Paul Kocialkowski" , "Pengutronix Kernel Team" , "Peter Griffin" , "Philippe Cornu" , "Raphael Gallais-Pou" , "Raphael Gallais-Pou" , "Robert Foss" , "Samuel Holland" , "Sandy Huang" , "Sascha Hauer" , "Seung-Woo Kim" , "Simona Vetter" , "Stefan Agner" , "Thierry Reding" , "Thomas Zimmermann" , "Tomi Valkeinen" , "Yannick Fertre" X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On Mon, 13 Jul 2026 13:53:06 +0200, Albert Esteve wrote: > Callers of of_drm_find_panel() receive a pointer with no reference > held, creating a window where the panel device can be unregistered > and freed between the lookup and first use (e.g., drm_panel_prepare()). > > Fix the lookup function by acquiring a reference with drm_panel_get() > > [ ... ] Acked-by: Maxime Ripard Thanks! Maxime _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip