Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a811175 authored by Panicker Harish's avatar Panicker Harish
Browse files

msm_serial_hs: Fix race between mod_timer and del_timer calls



Deletion of timer and synchronization of the handler will happen
during del_timer, but in the issue case the timer got deleted and
before handler_sync should happen the timer is getting modified or
accessed which further leads to kernel panic.

Fix this by modifying del_timer to del_timer_sync so that the timer
is protected until synchronization happen.

Change-Id: If5dec66b9bbcb5369898536ba1c727b487a13018
Signed-off-by: default avatarVenkata Manasa Kakarla <venkka@codeaurora.org>
Signed-off-by: default avatarYatish Kumar Singh <quic_yatishku@quicinc.com>
Signed-off-by: default avatarPanicker Harish <quic_pharish@quicinc.com>
parent ad5ca445
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment