diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-04-24 12:44:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 14:50:47 +0100 |
commit | fc075cc562de4aad00c8cbdb58f2459fe240c6e7 (patch) | |
tree | 686daa11accda7a5a5b7ca8d44708d2ee6b8ce9c /drivers/platform | |
parent | 8276749b388f5f989676a0d316325db5ccf4292b (diff) | |
download | linux-stable-fc075cc562de4aad00c8cbdb58f2459fe240c6e7.tar.gz linux-stable-fc075cc562de4aad00c8cbdb58f2459fe240c6e7.tar.bz2 linux-stable-fc075cc562de4aad00c8cbdb58f2459fe240c6e7.zip |
platform/x86: alienware-wmi: printing the wrong error code
[ 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 <dan.carpenter@oracle.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/alienware-wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index c0d1555735cd..83fd7677af24 100644 --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c @@ -587,7 +587,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"); } |