From 3be5a5a83978f27d58362aa3cb44893ade44ff61 Mon Sep 17 00:00:00 2001 From: Chris Lew Date: Mon, 21 Aug 2017 15:33:40 -0700 Subject: [PATCH] soc: qcom: smp2p: spinlock_test: Initialize work item Initialize the has_locked member before running SSR spinlock test to ensure consistent results. CRs-Fixed: 2091946 Change-Id: Ifad37541a94668b496aa9204dc80920b9a7ff244 Signed-off-by: Chris Lew --- drivers/soc/qcom/smp2p_spinlock_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/smp2p_spinlock_test.c b/drivers/soc/qcom/smp2p_spinlock_test.c index 74aac52b5285..1fe4411eebde 100644 --- a/drivers/soc/qcom/smp2p_spinlock_test.c +++ b/drivers/soc/qcom/smp2p_spinlock_test.c @@ -1,6 +1,6 @@ /* drivers/soc/qcom/smp2p_spinlock_test.c * - * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -522,7 +522,7 @@ static void smp2p_ut_remote_spinlock_ssr(struct seq_file *s) int spinlock_owner = 0; struct workqueue_struct *ws = NULL; - struct rmt_spinlock_work_item work_item; + struct rmt_spinlock_work_item work_item = { .has_locked = false }; seq_printf(s, " Running %s Test\n", __func__);