Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3010013pxb; Mon, 18 Oct 2021 06:32:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJsQi4ty+ulWN5fsEuVKgvznJD5Ei3JZKqIbT6UZkz/kVJTcxBRUo9c8d+8fodvHJIBpMh X-Received: by 2002:a62:1d08:0:b0:44c:6f89:85ef with SMTP id d8-20020a621d08000000b0044c6f8985efmr29364336pfd.42.1634563964032; Mon, 18 Oct 2021 06:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634563964; cv=none; d=google.com; s=arc-20160816; b=Md8V50bOn6tGaSg39ZV86d3cVFDXOwnFK1ZltXLMrHH6rIJVgG0RosEe/vKyat+8ci OGqzd3M3sJsFedGkiq61ijvoQ4qpLxpzsHdWfNLTNURuQB4k7AxEj0T/hDRJiydlpqIm KLYZluonAxkDgZAGBDpL3qj1zq/+cw4UQXJtTU15V9yPjuPbdXC5FpNGMBBMhwYzQ0Y8 nYobDJRBYjPXKo7oXtk0WBaI6Xv8TXKsrF2GhO8KNs8q3PkhKJIJDEvDzONCul67uTmF 6jOsMU1MAKuZQl7McMI8WBaUehUSfe7CCw3cVE/nWTeY44rat/SM7sOV8fmZo9GLkixB kCFA== 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=XwulpdNwmfRZrUjrzU2h1KkVQ3p5ypA+bnhNwgXfg2Chy5UnP+V7XwEv58EcNKsCU9 e35UERBZL5dv8Ez88LiZcK9gZRk/Ny6+vHCBcVrm+Q/41kyvsBgqKg3wdmRAXJlzdmiM 5pnjvhjzmVHzSwjy/KxDEPbw3xgtjqDvkWcsVQFgQ5ZhQQGw5MFAGRN+banvhlBbtVQY mu5hZAV6hjS/ZRS9wjM7+M5MUF/+KrXyN3OLPxhj6IpB5euh1u+hZEZNhbP899WIUdpW M1t140U4n49Qh8V0z5T91sltUA2J0dLEoC7YajhBEEtAuXfTswEltEnPxmh7jWzE414h 9mXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j6sYubtT; 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 g1si20581398pjl.47.2021.10.18.06.32.31; Mon, 18 Oct 2021 06:32:44 -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=j6sYubtT; 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 S232804AbhJRNdq (ORCPT + 99 others); Mon, 18 Oct 2021 09:33:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:44136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbhJRNcE (ORCPT ); Mon, 18 Oct 2021 09:32:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A07B61361; Mon, 18 Oct 2021 13:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563739; bh=ZGzhGwbdTu8vn5Z0RtLJ+mH04prsIESewSKx1xJlvhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j6sYubtT9ZTFuVnRdZtT3GemraEIfjTYjZli1ozXooyKniv6dVYiGQ+NVZnKoq/+S cAQqRU2RTaevsOOTH1kagIOGgSxl3QkI5UnvJTHjnhBkYvESgD42yo7hVKbbvbQrYV j34g1emmPUEhtHQN/WcH7L/mprFySWEm18E5k4X4= 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 4.19 45/50] drm/msm/dsi: Fix an error code in msm_dsi_modeset_init() Date: Mon, 18 Oct 2021 15:24:52 +0200 Message-Id: <20211018132328.013908324@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132326.529486647@linuxfoundation.org> References: <20211018132326.529486647@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;