]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - net/wireless/nl80211.c
nl80211: fix compiler warning
[mirror_ubuntu-eoan-kernel.git] / net / wireless / nl80211.c
index 864fcb6f217ee7fce782e146040470363bfb046e..258fb881c8e366426dde11bf33a407dab1309bed 100644 (file)
@@ -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;