Message ID | 20240730155930.1754744-1-sathyanarayanan.kuppuswamy@linux.intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Ilpo Järvinen |
Headers | show |
Series | [v1] platform/x86/intel/ifs: Initialize union ifs_status to zero | expand |
On Tue, 30 Jul 2024 15:59:30 +0000, Kuppuswamy Sathyanarayanan wrote: > 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. > > Thank you for your contribution, it has been applied to my local review-ilpo branch. Note it will show up in the public platform-drivers-x86/review-ilpo branch only once I've pushed my local branch there, which might take a while. The list of commits applied: [1/1] platform/x86/intel/ifs: Initialize union ifs_status to zero commit: 3114f77e9453daa292ec0906f313a715c69b5943 -- i.
diff --git a/drivers/platform/x86/intel/ifs/runtest.c b/drivers/platform/x86/intel/ifs/runtest.c index 282e4bfe30da..be3d51ed0e47 100644 --- a/drivers/platform/x86/intel/ifs/runtest.c +++ b/drivers/platform/x86/intel/ifs/runtest.c @@ -221,8 +221,8 @@ static int doscan(void *data) */ static void ifs_test_core(int cpu, struct device *dev) { + union ifs_status status = {}; union ifs_scan activate; - union ifs_status status; unsigned long timeout; struct ifs_data *ifsd; int to_start, to_stop;