Parcourir la source

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
Arun Kumar Khandavalli il y a 4 ans
Parent
commit
a16d7d09ca
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      core/hdd/src/wlan_hdd_driver_ops.c

+ 2 - 3
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)