Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3894167pxb; Tue, 19 Apr 2022 11:59:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzdq8LkbfYrf5GGuY8xMfX1IhdEFRYocWCtNN/LoPKgo1GItJL6inDe8YbVoIzxKM36bqu X-Received: by 2002:a50:fb03:0:b0:41d:8d3f:9427 with SMTP id d3-20020a50fb03000000b0041d8d3f9427mr19140464edq.263.1650394787304; Tue, 19 Apr 2022 11:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650394787; cv=none; d=google.com; s=arc-20160816; b=0Oa95vWEL6eD7QLjlJIJdn4bW88dMATHVotgTI3uA+dtAelN21omBm2fu15YepvzkU LYKEY5L8kW1l/29q5e9N6wRXiyovgZwa+Ae6f49VYU8+SEjICwbh34eWLnrfwhT+ds5o d/I4CiTLXVCOW58/Hh2Wft4hNenv/PdAmP4sjSmEP1ObzYbFWnAKkgNfbIg1OhFzisVk o9h2+6VYpl6vBHhQe+zHOikeehpN5MT5J1adbV1IJaot/M2wCVEAqJUxKfnUQe9oYps3 R4rG/9nsOxGRiAPBRaSZhiQqW7uKgwE/MmakpsxTknBQ2nhEkdaZT9w6mdJiyQ2i2XCb OWhg== 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=k4ONYObZmzJrApTfV7KFvmDpApsk438I8p2Fujc1Flo=; b=OrdYGBm1Vlz92sW4zOUA59nrKzY9nGC9wvQZW2jozbNhUD30fXbiecSO3tCm9J9ikv XweYt2ShiYC+/lPKcF2cXZjPpZD4G4Sk7b1WQPdpWy+LUmaF9ZBEvq0NLrp/7yp0ieNJ 6P5lTfGv2i6vYpUkmluttYZQ80Cp6Jwtn/8UWkC2H6R5i+pNj15XzqLTrbgUkacJOiB5 /65c8cjC72KmkENpMWwaSKAOl+lAWjBySK6kuzsuw5F5UkgD5ybE1UKp0QFAb1F54lPy Btn03jAyLEeJHfX3LR4NEMGBB74PEBJcU42FXr0j90pY9mponRfJy1wTTtLBOWm8hPYt 5Haw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZgvaTJh9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fw20-20020a170907501400b006e8c7b22c54si50686ejc.621.2022.04.19.11.59.22; Tue, 19 Apr 2022 11:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZgvaTJh9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238909AbiDRM1b (ORCPT + 99 others); Mon, 18 Apr 2022 08:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238645AbiDRM0V (ORCPT ); Mon, 18 Apr 2022 08:26:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6487911156; Mon, 18 Apr 2022 05:20:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 27060B80ED7; Mon, 18 Apr 2022 12:20:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68094C385A9; Mon, 18 Apr 2022 12:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284416; bh=wEqibby7SYUMkpvEnUyHpNDzShDLniGv9sMnw42cP9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZgvaTJh9+LigtGyg66NAR5yhabTW35bAf39sHgN63vzH2OB30nIIw2FSEHLq5qkY0 xynXq7a6lDa/YjdPRKY4k/PU76bxjz76POyPT+6TyFxq+b9NTx+y9TS1rT8IsppjF4 BZptR1VGCbR2oYhJPCIoKkaOt5GJsOUTbN+CYMPA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Baryshkov , Sean Paul , Stephen Boyd , Rob Clark , Sasha Levin Subject: [PATCH 5.17 091/219] drm/msm/dsi: Use connector directly in msm_dsi_manager_connector_init() Date: Mon, 18 Apr 2022 14:11:00 +0200 Message-Id: <20220418121209.149093580@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Boyd [ Upstream commit 47b7de6b88b962ef339a2427a023d2a23d161654 ] The member 'msm_dsi->connector' isn't assigned until msm_dsi_manager_connector_init() returns (see msm_dsi_modeset_init() and how it assigns the return value). Therefore this pointer is going to be NULL here. Let's use 'connector' which is what was intended. Cc: Dmitry Baryshkov Cc: Sean Paul Fixes: 6d5e78406991 ("drm/msm/dsi: Move dsi panel init into modeset init path") Signed-off-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/478693/ Link: https://lore.kernel.org/r/20220318000731.2823718-1-swboyd@chromium.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c index f19bae475c96..cd7b41b7d518 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c @@ -641,7 +641,7 @@ struct drm_connector *msm_dsi_manager_connector_init(u8 id) return connector; fail: - connector->funcs->destroy(msm_dsi->connector); + connector->funcs->destroy(connector); return ERR_PTR(ret); } -- 2.35.1