Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp737319imm; Thu, 13 Sep 2018 07:03:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbFqDa+8DlnnS11kRybmSvjgIZ5FUKsg9saBP0LxdO1kViXsL7WXbjQ8p4PnrxfG/ggsaMP X-Received: by 2002:a62:4704:: with SMTP id u4-v6mr7800784pfa.76.1536847404250; Thu, 13 Sep 2018 07:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847404; cv=none; d=google.com; s=arc-20160816; b=cNucISrcRn8NGvGHOUQs/dQukptokNZI8a8PTrLc8vASwZB7GgZ4VASf075p/x7Yj5 USlNhJ25c3MG/4YNgE2fBSkJo5kRMEcF7KPojcE6VCDbKESHfdpPVBzTMw705yBQhzSQ NXS7o5o7VVVfsPjxBrYvw0Jr7mWsglnnpFd/tavFSCu8s1G5qeAV39iHOoq1MTglYSfC pNV12zFbZCRuGeFdEaMdhsNGOPyiv+ewiqGV5BUyIvjMfCprSUyP+WHxOLh97/SXqFBi InvEOBGlxwxydFUH1y/fAyZVX54pqJfUqLWq6pmma4O6nyXaqzru/8fMyFOe2+vyhp1B /Iyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=k4FCelKvf1AslodtFJnNCRF28NX+toIONHLaQ/Z2JkQ=; b=D2UzfuouOWlBvXMugmYxgqWJPri0uloO6CCAop9U4aWvfZgAMwBrZgalSYy+FoLi4X reesD36OB9XY4pq5hQLdN60orW0qExhf+pHhDw9f51uHukl437mc21t/FMCvo7WS0Glq xOer64rg1op5ggxODpERlHAfXEdh8ryeC4v1g4oH51yxE18B7nwZ9D+t+kBw/PMCpRPa EE9hygcoCQ1E14GSOGo29+Y8zX+F0y9Ua5VKc8v4+kRXP4Ull+89ehQIYaVt9a/nj0HL h6MmsYACCsZD9qjBqpHDkrnm4CHtJVwGHbvbPuGCdA2ekB0a8qI089zkyeCP3+GO0xgE 3GAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn24si4336989plb.43.2018.09.13.07.03.05; Thu, 13 Sep 2018 07:03:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732018AbeIMTM1 (ORCPT + 99 others); Thu, 13 Sep 2018 15:12:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35284 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731126AbeIMTM1 (ORCPT ); Thu, 13 Sep 2018 15:12:27 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5BC2AD35; Thu, 13 Sep 2018 14:02:48 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evan Quan , Huang Rui , Alex Deucher Subject: [PATCH 4.18 160/197] drm/amd/powerplay: fixed uninitialized value Date: Thu, 13 Sep 2018 15:31:49 +0200 Message-Id: <20180913131847.953065134@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Evan Quan commit 1ce0688f3f6a9e9d34ae66bf779d54855def7bec upstream. The 'result' is not initialized correctly. It causes the API return an error code even on success. Signed-off-by: Evan Quan Acked-by: Huang Rui Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c @@ -490,7 +490,7 @@ static int vega12_get_number_dpm_level(s static int vega12_get_dpm_frequency_by_index(struct pp_hwmgr *hwmgr, PPCLK_e clkID, uint32_t index, uint32_t *clock) { - int result; + int result = 0; /* *SMU expects the Clock ID to be in the top 16 bits.