From: Malcolm Priestley Date: Thu, 9 Jul 2015 16:01:24 +0000 (+0100) Subject: staging: vt6655: check ieee80211_bss_conf bssid not NULL X-Git-Tag: v4.2-rc3~15^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8e8e9198920ddfa920191069ae02eba75d39e653;p=karo-tx-linux.git staging: vt6655: check ieee80211_bss_conf bssid not NULL Sometimes bssid can go null on failed association. Signed-off-by: Malcolm Priestley Cc: # v3.19+ Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index ed040fbb7df8..b0c8e235b982 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1418,7 +1418,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw, priv->current_aid = conf->aid; - if (changed & BSS_CHANGED_BSSID) { + if (changed & BSS_CHANGED_BSSID && conf->bssid) { unsigned long flags; spin_lock_irqsave(&priv->lock, flags);