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

Commit 0624760c authored by Dan Carpenter's avatar Dan Carpenter Committed by Johannes Berg
Browse files

mac80211: fix potential NULL dereference



Smatch complains that we could dereference skb later in the function.
It's probably unlikely, but we may as well return here and avoid it.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
[change summary]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent d9d8b019
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ static struct sk_buff *remove_monitor_info(struct ieee80211_local *local,
			/* driver bug */
			WARN_ON(1);
			dev_kfree_skb(skb);
			skb = NULL;
			return NULL;
		}
	}