Skip to content
Commit 09e7f280 authored by Yizhuo's avatar Yizhuo Committed by Andy Shevchenko
Browse files

platform/x86: compal-laptop: Initialize "value" in ec_read_u8()



In function ec_read_u8(), variable "value" could be uninitialized
if ec_read() fails. However, "value" is returned directly and used
in its callers. This is potentially unsafe.

Signed-off-by: default avatarYizhuo <yzhai003@ucr.edu>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 37d960a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment