From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v2 9/9] drm/panel: Add Ronbo RB070D30 panel Date: Mon, 11 Feb 2019 15:40:11 +0100 Message-ID: <20190211144011.cm5r2lbfiwm6giya@flea> References: <3eff6d6164845eee5636d7451b0fe08b09d1cf07.1549619502.git-series.maxime.ripard@bootlin.com> <1549628652.999919948@f417.i.mail.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1682749423==" Return-path: Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id 245726E4BC for ; Mon, 11 Feb 2019 14:40:14 +0000 (UTC) In-Reply-To: <1549628652.999919948@f417.i.mail.ru> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Konstantin Sudakov Cc: bbrezillon@kernel.org, dri-devel@lists.freedesktop.org, Paul Kocialkowski , Chen-Yu Tsai , Sean Paul , Thomas Petazzoni , Jagan Teki , linux-arm-kernel@lists.infradead.org List-Id: dri-devel@lists.freedesktop.org --===============1682749423== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yq2odd6vgyagrl2a" Content-Disposition: inline --yq2odd6vgyagrl2a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi, On Fri, Feb 08, 2019 at 03:24:12PM +0300, Konstantin Sudakov wrote: > Hello, Maxime! >=20 > >+mode =3D drm_mode_duplicate(panel->drm, &default_mode); > >+if (!mode) { > >+DRM_DEV_ERROR(&ctx->dsi->dev, > >+ "Failed to add mode " DRM_MODE_FMT "\n", > >+ DRM_MODE_ARG(mode)); > >+return -EINVAL; > >+} >=20 > Just small fix: DRM_MODE_ARG(mode) -> DRM_MODE_ARG(&default_mode). > The "mode" variable is NULL, it leads to the UB. Good catch, thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --yq2odd6vgyagrl2a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXGGJSwAKCRDj7w1vZxhR xUD8AP9Xo+azDG9eiCXY47mOqcW7SXPKCSh5RWw720edCQCkHgEA+iOhFAtTS3b4 lyus6u3axSxkcAj3pNDgIrhd7L/0vwM= =GT3t -----END PGP SIGNATURE----- --yq2odd6vgyagrl2a-- --===============1682749423== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1682749423==--