Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16ec75b5 authored by Solomon Peachy's avatar Solomon Peachy Committed by John W. Linville
Browse files

cw1200: Fix OOPS in monitor mode



In monitor mode, priv->vif is NULL, but at one point in the receive path we
blindly attempt to dereference it.  Add a test to prevent this.

Signed-off-by: default avatarSolomon Peachy <pizza@shaftnet.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4928bd2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1165,7 +1165,7 @@ void cw1200_rx_cb(struct cw1200_common *priv,
		if (cw1200_handle_action_rx(priv, skb))
			return;
	} else if (ieee80211_is_beacon(frame->frame_control) &&
		   !arg->status &&
		   !arg->status && priv->vif &&
		   !memcmp(ieee80211_get_SA(frame), priv->vif->bss_conf.bssid,
			   ETH_ALEN)) {
		const u8 *tim_ie;