From 261023d207af69af17526272628e0b40975a2fee Mon Sep 17 00:00:00 2001 From: Ashok Vuyyuru Date: Wed, 11 Nov 2020 23:11:09 +0530 Subject: [PATCH] msm: ipa3: Fix to move the spin lock handle to starting of struct Observing spin lock handle corruption in kasan testing. To avoid handle corruption moving the spin lock handle to starting of struct. Change-Id: Id77dd2deac1af80fde11418e96c56dd86c67599b Signed-off-by: Ashok Vuyyuru --- drivers/platform/msm/ipa/ipa_v3/ipa_i.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_i.h b/drivers/platform/msm/ipa/ipa_v3/ipa_i.h index e0b43c7d6236..1a6d41bd31d0 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_i.h +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_i.h @@ -1793,9 +1793,9 @@ enum ipa_client_cb_type { */ struct ipa_flt_rt_counter { struct idr hdl; + spinlock_t hdl_lock; bool used_hw[IPA_FLT_RT_HW_COUNTER]; bool used_sw[IPA_FLT_RT_SW_COUNTER]; - spinlock_t hdl_lock; }; /**