diff mbox series

[Xenial,v2,2/3] Revert "UBUNTU: SAUCE: net/wireless: do not dereference invalid pointer"

Message ID 20180507141200.25957-3-jesse.sung@canonical.com
State New
Headers show
Series a fix for mwifiex | expand

Commit Message

Wen-chien Jesse Sung May 7, 2018, 2:11 p.m. UTC
BugLink: https://launchpad.net/bugs/1769671

This reverts the workaround commit f21d12781c88413aec7ee44983f05b1cdf90662f
for integrating the fix.

Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
---
 net/wireless/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/wireless/util.c b/net/wireless/util.c
index e358511f1120..baf7218cec15 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -121,7 +121,7 @@  struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy,
 	int i;
 
 	for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
-		sband = wiphy ? wiphy->bands[band] : NULL;
+		sband = wiphy->bands[band];
 
 		if (!sband)
 			continue;