Commit 3114f77e authored by Kuppuswamy Sathyanarayanan's avatar Kuppuswamy Sathyanarayanan Committed by Ilpo Järvinen

platform/x86/intel/ifs: Initialize union ifs_status to zero

If the IFS scan test exits prematurely due to a timeout before
completing a single run, the union ifs_status remains uninitialized,
leading to incorrect test status reporting. To prevent this, always
initialize the union ifs_status to zero.

Fixes: 2b40e654 ("platform/x86/intel/ifs: Add scan test support")
Suggested-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: default avatarJithu Joseph <jithu.joseph@intel.com>
Reviewed-by: default avatarAshok Raj <ashok.raj@intel.com>
Signed-off-by: default avatarKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lore.kernel.org/r/20240730155930.1754744-1-sathyanarayanan.kuppuswamy@linux.intel.comReviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 6e73c490
...@@ -221,8 +221,8 @@ static int doscan(void *data) ...@@ -221,8 +221,8 @@ static int doscan(void *data)
*/ */
static void ifs_test_core(int cpu, struct device *dev) static void ifs_test_core(int cpu, struct device *dev)
{ {
union ifs_status status = {};
union ifs_scan activate; union ifs_scan activate;
union ifs_status status;
unsigned long timeout; unsigned long timeout;
struct ifs_data *ifsd; struct ifs_data *ifsd;
int to_start, to_stop; int to_start, to_stop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment