Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3624793pxb; Mon, 24 Jan 2022 13:48:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPMtX2RtqbnQQiAKdN6mkkyn+INu9JKNJMUJuYXNgsVmi/AfvV5AZZfGetK9mr6f02Tr5r X-Received: by 2002:a65:604b:: with SMTP id a11mr2387565pgp.120.1643060885730; Mon, 24 Jan 2022 13:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060885; cv=none; d=google.com; s=arc-20160816; b=Q0HFdS3yoeUm5HD0yM/7FyqAxwNmd2WeKhLGl9hYtxumbQTaHquwsxvQhzlb+Xsipd PPn9QdHQCF5Dcc51nNSNGLLkOyDRRbfa2B+XiHYZZ5hrdgcT5KEoiRQ3Rnunz7BJiBIh 3TZK6vhFpaQOr3nKg/AWYs9Mr7Jv5cIwp3DSpgd9I8MhdV1oztLvUeUYOjAf0ySjLYVs 0CQZPnzgdJjAbXqKOd7N0pfr+ETdjRKnRY/McGCiHSdXDVDoL4zKQr+8IxI0cF4Y+jrl URC0AG8v5JoIAuU/rpcQM2WocthNGVN9CaxnwRUZkltWAT+86dENYzKuebdownHjds73 Su7A== 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=4OxT1EHuhl/I6B4dDIYbQhrTUiRpbGRaWfsYkE9eB/E=; b=RaH9VEI/Y2Q5D9H4RgV9QnILcBhWvgeHDmpIb+WxY1Oh6adhs9al8pdycIM47VGc9K 4u+IYTFyF7rT6BScfzxTK2o/3Mp8D1bc92bafyEcYyr0Vq+1lp5iiVVpWemi988pQIYB zvmv+qCiGlqQDX2jN4p5Lb1KbVdOmdFVyVPaQZ6EsAReC3ygZcinzMKm6fr8kz4KyiK2 cAr65c8hAn/QFkGt7wKEB5MwG0hXG7mzY3R4HelmvDrP1rqC1AEkV7K3jXM/Rsqel7O8 qOLzw05ydvKnww+ef40KMGfwzbWBJU4FuhBTqRwdd8VY92WfwQ2ePAOx5rMSYJLyTpom 8+Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TTZjFucK; 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 q9si373050pja.104.2022.01.24.13.47.49; Mon, 24 Jan 2022 13:48:05 -0800 (PST) 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=TTZjFucK; 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 S1378356AbiAXV3i (ORCPT + 99 others); Mon, 24 Jan 2022 16:29:38 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:51108 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391368AbiAXU6Q (ORCPT ); Mon, 24 Jan 2022 15:58:16 -0500 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 dfw.source.kernel.org (Postfix) with ESMTPS id D37F261320; Mon, 24 Jan 2022 20:58:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E9AEC340E5; Mon, 24 Jan 2022 20:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057893; bh=eSFAMSNBJ2+1DUCDbG0cVf4bszUJGYhA/TtF+L2iozU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TTZjFucKDsoK/YCRKc5ycnGUFfuB6oai/7PDpSEhOagZqBStMETuxzDVFyzQisVmF Epry6mK+fnmBqS1Si/E1cWU8oqLWldzl8BBaUNMzSGgwXZ6/2qyAzTVkSYPkiFcupD b8Ahmjnnf/lORUiz/LRcLxBKPYCoxU6e0UzV5A8E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Sam Ravnborg , Sasha Levin Subject: [PATCH 5.16 0086/1039] drm/bridge: display-connector: fix an uninitialized pointer in probe() Date: Mon, 24 Jan 2022 19:31:15 +0100 Message-Id: <20220124184128.057152528@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 [ Upstream commit 189723fbe9aca18d6f7d638c59a40288030932b5 ] The "label" pointer is used for debug output. The code assumes that it is either NULL or valid, but it is never set to NULL. It is either valid or uninitialized. Fixes: 0c275c30176b ("drm/bridge: Add bridge driver for display connectors") Signed-off-by: Dan Carpenter Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20211013080825.GE6010@kili Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/display-connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/display-connector.c b/drivers/gpu/drm/bridge/display-connector.c index 05eb759da6fc6..847a0dce7f1d3 100644 --- a/drivers/gpu/drm/bridge/display-connector.c +++ b/drivers/gpu/drm/bridge/display-connector.c @@ -107,7 +107,7 @@ static int display_connector_probe(struct platform_device *pdev) { struct display_connector *conn; unsigned int type; - const char *label; + const char *label = NULL; int ret; conn = devm_kzalloc(&pdev->dev, sizeof(*conn), GFP_KERNEL); -- 2.34.1