[RAMEN9610-10585][COMMON][MODAP-14406] Modified del_timer to be excuted only when
authorJiyoung Jeong <ji_0.jeong@samsung.com>
Wed, 9 Jan 2019 06:51:12 +0000 (15:51 +0900)
committerhskang <hs1218.kang@samsung.com>
Wed, 9 Jan 2019 09:01:16 +0000 (18:01 +0900)
init_timer was called

Change-Id: If5bc09dcec8f1bd2c0f74f66c4975f5d7883297a
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
drivers/misc/modem_if/modem_link_device_shmem.c

index 013928b1a2e2b314b4f847189459d9ec1ea1b8c6..e334f0a488e626014c95a0741a6a19c843e2095b 100644 (file)
@@ -477,7 +477,8 @@ static void cmd_crash_exit_handler(struct shmem_link_device *shmd)
 
        ld->mode = LINK_MODE_ULOAD;
 
-       del_timer(&shmd->crash_ack_timer);
+       if (timer_pending(&shmd->crash_ack_timer))
+               del_timer(&shmd->crash_ack_timer);
 
        if (!wake_lock_active(&shmd->wlock))
                wake_lock(&shmd->wlock);