[RAMEN9610-10596][COMMON][MODAP-14637] drivers: modem_if: Add wake_unlock before...
authorJiyoung Jeong <ji_0.jeong@samsung.com>
Wed, 9 Jan 2019 09:03:31 +0000 (18:03 +0900)
committerhskang <hs1218.kang@samsung.com>
Wed, 9 Jan 2019 11:34:34 +0000 (20:34 +0900)
Change-Id: Id6ea7021c51183f31a05d0d04b61b5f88d96e584
Signed-off-by: Jiyoung Jeong <ji_0.jeong@samsung.com>
drivers/misc/modem_if/modem_io_device.c

index a42ee6cb05c475c86baed0fa438ac173a1acdf2a..404f73686ce5fd12ef1682f76374f3004ca7f0a9 100644 (file)
@@ -139,8 +139,10 @@ static struct device_attribute attr_txlink =
 
 static inline void iodev_lock_wlock(struct io_device *iod)
 {
-       if (iod->waketime > 0 && !wake_lock_active(&iod->wakelock))
+       if (iod->waketime > 0 && !wake_lock_active(&iod->wakelock)) {
+               wake_unlock(&iod->wakelock);
                wake_lock_timeout(&iod->wakelock, iod->waketime);
+       }
 }
 static int netif_flow_ctrl(struct link_device *ld, struct sk_buff *skb)
 {