From a16d7d09ca8b34a557f3364cdde2b78fcf4cfcb4 Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Tue, 22 Sep 2020 21:38:46 +0530 Subject: [PATCH] qcacld-3.0: Stop dsc transaction in case of reinit failure Incase of any error in the driver reinit the dsc transaction is not stopped resulting in the timeout and system instability. To mitigate the above issue, stop the dsc timeout incase of reinit failure. Change-Id: I59b37581a2e6909b61a32344ae9c4af2118558eb CRs-Fixed: 2780376 --- core/hdd/src/wlan_hdd_driver_ops.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index e4e219d8c1fda..66164b000023c 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -679,12 +679,11 @@ static int hdd_soc_recovery_reinit(struct device *dev, return errno; errno = __hdd_soc_recovery_reinit(dev, bdev, bid, bus_type); - if (errno) - return errno; + osif_psoc_sync_trans_stop(psoc_sync); - return 0; + return errno; } static void __hdd_soc_remove(struct device *dev)