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 4B4B4C7EE2E for ; Mon, 12 Jun 2023 09:36:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 609B510E1E5; Mon, 12 Jun 2023 09:36:10 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by gabe.freedesktop.org (Postfix) with ESMTPS id C5D0C10E1E5 for ; Mon, 12 Jun 2023 09:36:08 +0000 (UTC) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 97BB981D65; Mon, 12 Jun 2023 11:36:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1686562564; bh=npmPTLS+n6e1lDvCz3f3orfjwxuNk2wlQDmUPptyhR4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VOsmJsdhzJ5ZdrTltg9anzFT/fmY00SBlPVC4T7GiswDNtwnI4T+COiO/ltdVMGA+ VlaKRevhZKQp5N2lBsUqTFg9WwFPbII+0aIHqnsQqoM89M/8B7wS+fNT9DOVLf+sv9 +gQYRxAaq11r/t3mdkd+gy0LFyy2SvqYyF6cM/QIYrP74DZvcVvs8YpW+uG41nlWe2 ugw10HUBTA0MSiFgDhbavtKh2Mst7uWdY2sMusrSKzpL+K5q7lvia34JZdrkqVTtvI hzx8LSVNwuExLKysi5VVZraTgSw5TuOj+KeTkhn1pQ5FzALJYFIRJ5eHFQ8Ms5JJc0 6ncp8xI3wHL1g== Message-ID: <92060edb-97c2-c79e-6ae6-51caffd768ca@denx.de> Date: Mon, 12 Jun 2023 11:36:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] drm/mxsfb: Disable overlay plane in mxsfb_plane_overlay_atomic_disable() Content-Language: en-US To: Ying Liu References: <20230612075530.681869-1-victor.liu@nxp.com> From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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: Liu Ying , shawnguo@kernel.org, s.hauer@pengutronix.de, dri-devel@lists.freedesktop.org, linux-imx@nxp.com, kernel@pengutronix.de, sam@ravnborg.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 6/12/23 11:15, Ying Liu wrote: > On Mon, Jun 12, 2023 at 5:06 PM Marek Vasut wrote: >> >> On 6/12/23 09:55, Liu Ying wrote: >>> When disabling overlay plane in mxsfb_plane_overlay_atomic_update(), >>> overlay plane's framebuffer pointer is NULL. So, dereferencing it would >>> cause a kernel Oops(NULL pointer dereferencing). Fix the issue by >>> disabling overlay plane in mxsfb_plane_overlay_atomic_disable() instead. >>> >>> Fixes: cb285a5348e7 ("drm: mxsfb: Replace mxsfb_get_fb_paddr() with drm_fb_cma_get_gem_addr()") >>> Signed-off-by: Liu Ying >> >> Should this be Cc: stable too ? > > Ok, will explicitly Cc: stable. Thanks. Add Reviewed-by: Marek Vasut And also, wait a little bit for RB from others. Thanks !