Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3599857pxb; Mon, 24 Jan 2022 13:12:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9eeoq1C/acukXP7Pkag2tLqbzTgDAJa7uJj3EvuPKR5Bf8Oi3SnR53eJ3V+clzniIb8kY X-Received: by 2002:a17:90b:1a8f:: with SMTP id ng15mr113560pjb.93.1643058776623; Mon, 24 Jan 2022 13:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058776; cv=none; d=google.com; s=arc-20160816; b=kxwXGG1wgci041mf4rqJ+D7IjdkQexkyuqB07aUOHvduUtuNr00d4BcZAwCqQB053t 6cnv1uKcdhET/2y5kPO9UnD4S9uCtrTdFazieWbkHflnDIm5x+miMwUtTR30BR21X3tx kdrxfVmvJOyftal9B/2NdOI6qd1cfzvom03Ccq/Y1rFPT/6l0AbFRAOkx10zMqUwyj5d RW2PDyjDIU2OS+6sCzy8JSFnTXY48lPofGIgBmCBfi53HFxZDE5XbNIfoCO6+vfyjUS6 fyurRv8XM2RbbWypvI0Q6+2CXNMQEt2ge08F4IBoVJi3UvWxRkU3f5Ep6jlJubmu4LKE 0nng== 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=ddNyRw6epwUzGxzV4Dl7RSuFrcHEQ+VUe9s2acLF1G634k27jMEPMrXhVzl8+bszrm 7oKiHdCLuUVcrnAj4TS0Jb/hcCLdhlnkdN9L9aoLwgTK9pkIv1+xWcminWf4qfe3uqUI rB72bVd9QssK9f+Qt6r3wfLXpF47XXMFcseaB9A4nGpKVGsyYNNpaFmTSh4UQWu993N7 ABI/bseNgn9PXWMOY6fI4FtzU6VfgZd5sftvoiHC8nW0NoWncX5EFhdH+McYtEVrjP5m GPeF/EASaU6xaMHEoJhNXv3914bcj0URu62Sl0c8Wiwyr8CwimZyuLm/VixCWctawYsh oYhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ddtTIOpe; 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 u9si13277082plz.374.2022.01.24.13.12.43; Mon, 24 Jan 2022 13:12:56 -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=ddtTIOpe; 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 S1387537AbiAXUgy (ORCPT + 99 others); Mon, 24 Jan 2022 15:36:54 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:53858 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355652AbiAXUO2 (ORCPT ); Mon, 24 Jan 2022 15:14:28 -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 ams.source.kernel.org (Postfix) with ESMTPS id C7A2EB8124F; Mon, 24 Jan 2022 20:14:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBD89C340E5; Mon, 24 Jan 2022 20:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055264; bh=eSFAMSNBJ2+1DUCDbG0cVf4bszUJGYhA/TtF+L2iozU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ddtTIOpeRFOX1VNXQcSd1ht1Fg1sKDohlteT0ZXjdKMIxucg8/2zzlcXQWnkSIuS/ T34qVakn/ZUdmNb9X8gYiwv+N61h/bv0jTptjv4lCmkMuNNASs3lvaeWGITdCv1z5Z pvx9SZfkFPU6ezFRpB1EReLXcLPhMJZ9+KXMc4xk= 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.15 077/846] drm/bridge: display-connector: fix an uninitialized pointer in probe() Date: Mon, 24 Jan 2022 19:33:14 +0100 Message-Id: <20220124184103.649101971@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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