Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3986167pxb; Mon, 4 Oct 2021 14:28:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTLgnTYaC6WfsJGKoemE/SZH6GeLjQrfhYJwor1O8FD16bV2+HXdpJWU/f/pt7k1WXWNvL X-Received: by 2002:a17:906:681:: with SMTP id u1mr19690908ejb.499.1633382922609; Mon, 04 Oct 2021 14:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633382922; cv=none; d=google.com; s=arc-20160816; b=0N/Lkto6uiD3sg0EKg+rWNNLPLlrKuU2fFeIWxz9oHfafGoZObfjv6skY7DRw3vECX s770XM3IzIx3v7vkFLHhBHEk35ZFN4WgvnWYJGkE6eavkqzGQLk1VuAKJ/S4/YpIYgAF 85WA54LvVq5lbwVR23AvYhIPSPez5+21MH2MYtMlrAumIXk/zFbkJJ7igr7E5NTH0m1u p++gmB3T+eZe6aARD49+U9KZsJg0CETsV/ZPE+sYA1xSYwUqgLQl03I4gryARnSIyq9M 53kw6XW/6qH2PkqMkZlOc3eMs8ejVBYiL6mw4ga4fF+TWxQYF5Oi+wf14Hmrhr83pUlU 2PXQ== 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=ytXvx2Owp1qnrJSFQxMWI63qbTPI9YERRXjpaE+Bw3I=; b=H5jxP7E+cJlPh9RwbV6LG1YeN+lGbSH1A5xmHfhEoAjBH3sI266dW0sYzKKv9URWv9 0MUQ7j9L0twpXhGUVGMH0+I974OQTOi4TyspLuDacoqJVUBmO0C13CdR0jGLk1bTJKpV jgtA57Me5RzRq0LErt6fmLldoayEfuRSG7H5E0npsSR37HswnZ5FJjgni754NgVM0L4m vx3LEMCNnES4zXwtExa9EzwYmh4eyhhXqNS3mAwiHBE5NOuVVafgYwflMqO3EfNpDeoj 1fyOjZar0DeG4xc6P90tsXppas8Yy/I0rtR4f3OrZVWsOTvyxaMtg90QhJiCZZW/nNYm 81VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="qHzYT/a5"; 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 x10si18677030edj.155.2021.10.04.14.28.19; Mon, 04 Oct 2021 14:28:42 -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="qHzYT/a5"; 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 S238214AbhJDNhd (ORCPT + 99 others); Mon, 4 Oct 2021 09:37:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:47632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237925AbhJDNf3 (ORCPT ); Mon, 4 Oct 2021 09:35:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6AB0963238; Mon, 4 Oct 2021 13:16:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353363; bh=bX9+0K4FaEhhgzXzbjcY3vmFtTRQQnhZ8+ABCRCoxsk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qHzYT/a5IkkrhnGV/1Z+489xv2vQE60sRacOrTjXXDl1utBRdplqsffMMfl2rNzty BICP2S7Y43CD6eTVYPItXeLjxgEGj+y+3ZJoPi2ys54ZK5bo/BJeTHxpxnDUfBe1CC bMPqjz7OgDlgdjLbGEhqH0HDE/5WbcC8OPSRMgnk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roman Li , Anson Jacob , Josip Pavic , Daniel Wheeler , Alex Deucher Subject: [PATCH 5.14 067/172] drm/amd/display: initialize backlight_ramping_override to false Date: Mon, 4 Oct 2021 14:51:57 +0200 Message-Id: <20211004125047.154908306@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@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: Josip Pavic commit 467a51b69d0828887fb1b6719159a6b16da688f8 upstream. [Why] Stack variable params.backlight_ramping_override is uninitialized, so it contains junk data [How] Initialize the variable to false Reviewed-by: Roman Li Acked-by: Anson Jacob Signed-off-by: Josip Pavic Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1724,6 +1724,7 @@ static int dm_late_init(void *handle) linear_lut[i] = 0xFFFF * i / 15; params.set = 0; + params.backlight_ramping_override = false; params.backlight_ramping_start = 0xCCCC; params.backlight_ramping_reduction = 0xCCCCCCCC; params.backlight_lut_array_size = 16;