diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 864fcb6f217ee7fce782e146040470363bfb046e..258fb881c8e366426dde11bf33a407dab1309bed 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -5283,7 +5283,7 @@ static int nl80211_tx_mgmt(struct sk_buff *skb, struct genl_info *info) bool channel_type_valid = false; u32 freq; int err; - void *hdr; + void *hdr = NULL; u64 cookie; struct sk_buff *msg = NULL; unsigned int wait = 0;