Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2179645imu; Tue, 6 Nov 2018 10:13:18 -0800 (PST) X-Google-Smtp-Source: AJdET5eZw6y5Y1uSkUk/hBzCeTInCEBFGVs0TO+5vCKjPZEX23uIo/Zg5FHu3UdlBPCWvGE9twrH X-Received: by 2002:a63:b34f:: with SMTP id x15mr2527284pgt.243.1541527998829; Tue, 06 Nov 2018 10:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541527998; cv=none; d=google.com; s=arc-20160816; b=cB7psmAA7hPZ3gcrfKqIpQ1WZa1UfnbCZwa5MBTZAbCmH17/TLVOvVRgGMvBZ6TYnB jjPS1hhMor4whIyOQHOofOyYRp2WUsU/eKUhdYzvivpeHrSH03AJEX6hQfXof2UQDPj2 k/wzf5+DO3lQkVN6miMq8WB+uKGMHrRCnfHsTD5HIwx9R2Ln059Kz+McfhPJXJilANdZ WfFichfH8o5sUZniXQMYem616CuQpRQxSV7NWq4TGxFeyL2GCMoS3drnu/Y+jNi6qR+N qwSM0oKNn2WB745JHpph9G7dLS2xN4i4CW/Cyj+tqiPtOd5bpjvLk5WNvkDnlLmhITdv 3Rzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L+9nd/eq9aMI+92puOeHSIaSpK7CZ3zt8QPz4CPry/4=; b=RTLdrdGhQNFD3iklQVJ6Sc1C7XgbPtryew/4KpQiyvOIOYiMjwqVle5shSfm76652z 6rtgz+lIbNqKGGSWNpDmFTwn9xHIxTNnxcvED93D7or3homJBvr6ZjTwemzlO7/0Mbtu DR2Jv6bsH9yl/qn0UjXIiyruQ5Drm0F3jslyhipfTKYZ2hax+lQLpvnSwhSTqqdVp7zx v5O5vfFqdxSlUIMHD5DszuVYzImbOSTxSpeec70BPne9hf3r3gYut3KIGmbgeQAHGXOg qpqvW82kQnQMCKxdVNiuIOeGVNIl1n5N3Vx1LmiTNVFuC4s7jr7JXa1vmGCc/FOGgdwT N4Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si10378560pgm.238.2018.11.06.10.13.03; Tue, 06 Nov 2018 10:13:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389096AbeKGBXG (ORCPT + 99 others); Tue, 6 Nov 2018 20:23:06 -0500 Received: from mail.bootlin.com ([62.4.15.54]:54768 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388422AbeKGBXG (ORCPT ); Tue, 6 Nov 2018 20:23:06 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 09E5F20741; Tue, 6 Nov 2018 16:57:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.188]) by mail.bootlin.com (Postfix) with ESMTPSA id BD46320712; Tue, 6 Nov 2018 16:57:12 +0100 (CET) Date: Tue, 6 Nov 2018 16:57:12 +0100 From: Maxime Ripard To: Icenowy Zheng Cc: Giulio Benetti , David Airlie , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] drm/sun4i: tcon: prevent tcon->panel dereference if NULL Message-ID: <20181106155712.4lcxw7yts7jixnkl@flea> References: <20181004195605.txvbkshvxklyzxyb@flea> <20181005215951.99003-1-giulio.benetti@micronovasrl.com> <20181005215951.99003-2-giulio.benetti@micronovasrl.com> <20181008092111.qcufr4o7cy3nnj4b@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6wpp5cvpnadqamr5" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6wpp5cvpnadqamr5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 05, 2018 at 09:23:08PM +0800, Icenowy Zheng wrote: > =E5=9C=A8 2018-10-08=E4=B8=80=E7=9A=84 11:21 +0200=EF=BC=8CMaxime Ripard= =E5=86=99=E9=81=93=EF=BC=9A > > On Fri, Oct 05, 2018 at 11:59:51PM +0200, Giulio Benetti wrote: > > > If tcon->panel pointer is NULL, trying to dereference from it > > > (i.e. tcon->panel->connector) will cause a null pointer > > > dereference. > > >=20 > > > Add tcon->panel null pointer check before calling > > > sun4i_tcon0_mode_set_dithering(). > > >=20 > > > Signed-off-by: Giulio Benetti > > > Fixes: f11adcecbd5f ("drm/sun4i: tcon: Add dithering support for > > > RGB565/RGB666 LCD panels") > > > Reviewed-by: Chen-Yu Tsai > >=20 > > Applied both, thanks! >=20 > Please bring them to 4.20. >=20 > Currently in 4.20-rc1, bridge support of sun4i-drm is broken because of > this problem. I've merged them in drm-misc-fixes, thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --6wpp5cvpnadqamr5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW+G52AAKCRDj7w1vZxhR xazqAQDJPstjH7lIINiEPEbb11sPVgR18vN6bE73oWoZ9ff8DQEA5KW6QYDYXeOK /aPHtxuF3gavO4SzfMxfSXa4IuSrGQg= =tAvB -----END PGP SIGNATURE----- --6wpp5cvpnadqamr5--