Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp462768ybl; Tue, 28 Jan 2020 06:21:26 -0800 (PST) X-Google-Smtp-Source: APXvYqx24S20iFdQ6hDPgsZCPlaWJ973PrGUKkvC4+eMAondpXwL8w7dPbquocPGCf5Ev2nM30cB X-Received: by 2002:a9d:7cd9:: with SMTP id r25mr15652168otn.326.1580221285881; Tue, 28 Jan 2020 06:21:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221285; cv=none; d=google.com; s=arc-20160816; b=V0wcb/HxZRsVRxBz7ctghxOioXdfFQ3ObAysljI0GlyYB6aHPHq0b7ARvv73vJDZLo ntS5+Nr9x53ux44UqTINnJQkkHogk/gKMXkgg4eXOdyDFdL2DDDvWNUvscaFKrcAqBCz GhL7P86fOaqfZ5uh9rAqWIky2DROvld8Z+O+NwYNyxwAaBuu2nF0LASGPCLoc0w+rNUv OZvNuZ/A8giMKlUt0+OG7uX/W3Xyrh6LV+wLHip24r9hKKEk8dnhg1x6It5NNchas47T DKhpIcgIa/3rKLATY9dZi6U+tj+n2VpSQRa+SQNMJJWtlYY04udruORI0TqzFtV/G5VL Obxw== 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:dkim-signature; bh=FIegXhpYTt/CKi/+O2cPV+0fB90oxaPo01YbqnAndiI=; b=Gwa17SC9NV/fxplX+6APes0VDzChrU0gNk9zF5He1bMwxTSrEsbt7wU27PFbV7qEq+ RKLwq1zCitoxhrbuuvGfSq4HE+PgU/WYIcc3erZ90DfshsrqQ4KPrdLGEZcv6IfPeAc7 wOQrTS+tT7s5nCt6v1pWxBlth+cTlm8hIoqoQEKz+7gQNI1lCaup34+WnQvD85czqmYs hZ8FI57zSP+l8G3a+FqXO9oCiBIquhPftvmL1FtS/iCctARCsqGaiKk9qfGJ/Vwd/x/V EISdDmL0FBdP8YAvSlcTg+FVCrpZ3/llMKSgcnI9QIIaEa6GhvRm1peROjbLi5H0B0SV Cc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wRgkJ7w+; 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 u8si9130404otq.262.2020.01.28.06.21.14; Tue, 28 Jan 2020 06:21:25 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=wRgkJ7w+; 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 S1731086AbgA1OUZ (ORCPT + 99 others); Tue, 28 Jan 2020 09:20:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:45216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730832AbgA1OUV (ORCPT ); Tue, 28 Jan 2020 09:20:21 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE3B624681; Tue, 28 Jan 2020 14:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221221; bh=dOS2yNZCnC+oUXIGxeAJhoVIsP9f/hRtOGR5yWq3los=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wRgkJ7w+vEkVmE3nHSjU9MZCKIpPOWEaSnGp/TuqNHvyQyfb1MnLzuK/HP61QAzFe ipGaguRr1ZqTEesTTvEUijZYkbDpt/L7ek15kpyNDm+o0MtESkFJJnMkySexwfUzm1 GFfy7qAvdxP4Jyq8wy9q/5bah8KUTIuo11iDDP6M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Mario Limonciello , Andy Shevchenko , Sasha Levin Subject: [PATCH 4.9 137/271] platform/x86: alienware-wmi: printing the wrong error code Date: Tue, 28 Jan 2020 15:04:46 +0100 Message-Id: <20200128135902.786270718@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Dan Carpenter [ Upstream commit 6d1f8b3d75419a8659ac916a1e9543bb3513a882 ] The "out_data" variable is uninitialized at the point. Originally, this used to print "status" instead and that seems like the correct thing to print. Fixes: bc2ef884320b ("alienware-wmi: For WMAX HDMI method, introduce a way to query HDMI cable status") Signed-off-by: Dan Carpenter Reviewed-by: Mario Limonciello Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/platform/x86/alienware-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index fe419935041c1..bee2115ecf101 100644 --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c @@ -570,7 +570,7 @@ static ssize_t show_hdmi_source(struct device *dev, return scnprintf(buf, PAGE_SIZE, "input [gpu] unknown\n"); } - pr_err("alienware-wmi: unknown HDMI source status: %d\n", out_data); + pr_err("alienware-wmi: unknown HDMI source status: %u\n", status); return scnprintf(buf, PAGE_SIZE, "input gpu [unknown]\n"); } -- 2.20.1