Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3037343pxb; Mon, 18 Oct 2021 07:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmnwsbZ2hEKHbYZbS+0l9vF6wt5otT6sVBsJJwiarAlRQ7ZBmGcc/bTpla/HlJ0+yBtXDE X-Received: by 2002:aa7:8b56:0:b0:44c:10a:4ee9 with SMTP id i22-20020aa78b56000000b0044c010a4ee9mr29431653pfd.46.1634565888989; Mon, 18 Oct 2021 07:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565888; cv=none; d=google.com; s=arc-20160816; b=lJT7Ngx3IufIQqeO/8yDQawn86EBhgRSRpwaO0+Aa9Gv2OYT+rC5TsLvh+V0Bhbdkb T9eG1yfMYyKgK4nXp+DFsUuawHf6EhFDnWfAEhOpCsP+FLNhsRMoTsGhAQGntD2s1SV8 oK1wUbyZAiSxLYdeJD3mW11dsI9tiMeEeXaodKYYRazqoTOGd8ddb4y8FMG+ai1A8f+Q /IGPY7abWEUMxnbONx6j6bmIek5JmDZFX89DFdrGEQ86LeJgIsaJu6VLLPHC6R85ivnJ S96iBt5dg0PCg/O54N7RTxO2dQmzkBvOpZhtKTytPy/frccsJBhfjavJXynAd6FJXE1b l1DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=reoP9vGWb8l2MhMqEq//X44gRsD9NnEzDNCo8f/FzsQ=; b=vqpAfgi9QV0gO5DjhDjka9SVQYr2WqbJen34W/buabpMZy3u1GibZhj7DC10Li5Dky FTZOmvETMxgWbZUqJI+x1cafEr0CQvVilb9NaQDjBlgpH7rlTB4VULVqsHBGpqMScRI9 fWRS9p38yZQ1LTJ/vWhYA3p+BFUMIST3pzpGQ90CQTnPqW36cCEW5upzb7asYuuj/0ef 1tFP1TiUp3tRAlUleMs094BhoqswFA4bQ4TBbgXwZqGKsZZ62pWz/5oU6co9d/pp9kky Rwoht+DURCSNr7mpzFgaGIwRv6dyWK4VfExOYiw3UBsA0KhbyCzjqqbx2L+fMtRhdYGd /i5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jlPY8NW4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si18948388plp.339.2021.10.18.07.04.34; Mon, 18 Oct 2021 07:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jlPY8NW4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233653AbhJROFM (ORCPT + 99 others); Mon, 18 Oct 2021 10:05:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:39834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232740AbhJROBY (ORCPT ); Mon, 18 Oct 2021 10:01:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D94EC61A87; Mon, 18 Oct 2021 13:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564560; bh=ZGzhGwbdTu8vn5Z0RtLJ+mH04prsIESewSKx1xJlvhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jlPY8NW4TIOMeAUOpj15shvarrggn8I7Rj+2wQLGHrnImY/f+ZkVPqO6vNX+QWN27 wz7VEsqx4qL6+OMbebj/rgujea7BoHYQ2Fw9qfaNVx181LoGcj9GKVw6MZdJUXDXEU za8j+D4ILjEOAev68wUuVVkACUV1t9XUKjGZ3r58= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Dmitry Baryshkov , Rob Clark Subject: [PATCH 5.14 134/151] drm/msm/dsi: Fix an error code in msm_dsi_modeset_init() Date: Mon, 18 Oct 2021 15:25:13 +0200 Message-Id: <20211018132345.022963753@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter commit 739b4e7756d3301dd673ca517afca46a5f635562 upstream. Return an error code if msm_dsi_manager_validate_current_config(). Don't return success. Fixes: 8b03ad30e314 ("drm/msm/dsi: Use one connector for dual DSI mode") Signed-off-by: Dan Carpenter Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20211001123308.GF2283@kili Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/msm/dsi/dsi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/msm/dsi/dsi.c +++ b/drivers/gpu/drm/msm/dsi/dsi.c @@ -208,8 +208,10 @@ int msm_dsi_modeset_init(struct msm_dsi goto fail; } - if (!msm_dsi_manager_validate_current_config(msm_dsi->id)) + if (!msm_dsi_manager_validate_current_config(msm_dsi->id)) { + ret = -EINVAL; goto fail; + } msm_dsi->encoder = encoder;