Ver código fonte

qcacld-3.0: Fix bad SSR protection in wakelock stats handler

It was observed that it was taking an excessive time for Wi-Fi to
unload from the UI.  Logs showed that unload was waiting for an
external thread to exit, giving the entry point as
wlan_hdd_cfg80211_get_wakelock_stats(). Analysis of that function
showed it is incorrectly using the SSR protection functions.  Update
that function to correctly "unprotect" on exit.

Change-Id: Ic7476be656a7b0c8d09748c1e546fd1a33ce33c5
CRs-Fixed: 1077214
Jeff Johnson 8 anos atrás
pai
commit
f3a64e6081
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -7636,7 +7636,7 @@ static int wlan_hdd_cfg80211_get_wakelock_stats(struct wiphy *wiphy,
 	cds_ssr_protect(__func__);
 	ret = __wlan_hdd_cfg80211_get_wakelock_stats(wiphy, wdev, data,
 								data_len);
-	cds_ssr_protect(__func__);
+	cds_ssr_unprotect(__func__);
 
 	return ret;
 }