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

Commit 4622d1a6 authored by Lynus Vaz's avatar Lynus Vaz
Browse files

msm: camera: crm: Use del_timer_sync to delete the timer



Use the del_timer_sync() API to delete the timer. This deletes the
timer and waits for all running instances to complete.

Change-Id: Ib379f524c0101be7dd182f34d049c14a1e98addc
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 11af628b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ void crm_timer_exit(struct cam_req_mgr_timer **crm_timer)
{
	CAM_DBG(CAM_CRM, "destroy timer %pK", *crm_timer);
	if (*crm_timer) {
		del_timer(&(*crm_timer)->sys_timer);
		del_timer_sync(&(*crm_timer)->sys_timer);
		kfree(*crm_timer);
		*crm_timer = NULL;
	}