From: Jiyoung Jeong Date: Wed, 9 Jan 2019 09:03:31 +0000 (+0900) Subject: [RAMEN9610-10596][COMMON][MODAP-14637] drivers: modem_if: Add wake_unlock before... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0d50f9e610f12c36ed52ebb06b2cd25ecc5c288;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-10596][COMMON][MODAP-14637] drivers: modem_if: Add wake_unlock before wake_lock Change-Id: Id6ea7021c51183f31a05d0d04b61b5f88d96e584 Signed-off-by: Jiyoung Jeong --- diff --git a/drivers/misc/modem_if/modem_io_device.c b/drivers/misc/modem_if/modem_io_device.c index a42ee6cb05c4..404f73686ce5 100644 --- a/drivers/misc/modem_if/modem_io_device.c +++ b/drivers/misc/modem_if/modem_io_device.c @@ -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) {