Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp508749imw; Wed, 13 Jul 2022 02:48:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uma4CLUGl+9XLMtf2EtjCXSOcrFyWSgRpXPpn+o3lyFf8nciGUP+DdN2ra10jmnT0QKe91 X-Received: by 2002:a17:902:e5d0:b0:16c:40bc:cfeb with SMTP id u16-20020a170902e5d000b0016c40bccfebmr2345929plf.115.1657705732781; Wed, 13 Jul 2022 02:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657705732; cv=none; d=google.com; s=arc-20160816; b=vNWhtJ4gdqH53OVnvllMwF8Zr2j8Sw9Nq48EKOYbEuv08NjBsPRoBWAl9w7M4y8xJY RqYlG0ugkqPLCVfwxyGsFrrRcI7kLXDBFzpWrAFiojVZQ5CzsQusmwjjgaBN1lY96iia +78W3hqqFA2OWcXSJ6X8YaUbFbfpDHW2ttskBwwDKPCT1CgsEehkqAKMmzLVtZayeODs xLOQk3bBuHELLs1DwA11osXgwn15M38wmjt/pGztXHBIcgB4MZ6BO4BxNNIsa6eE1dcu XUbOFAt9orvjWJ5LUMivxP9L3JaOy7b41S7u81VWvUqr4TUgGo2qwSNKHg60YUgxuWeF V0Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IzBRxpxGlNmts79l/1UzNlDg52Q2m506Q4iOlT8VG60=; b=CFei6c6XRn9yItfO3Jh+uBEr3JyNULVp2BZcH7NiCvelkvk3XJND+/Yvp7z3KcGPZb HYn83eApGKqTSzs6rmZqOFzgBPHykEgM92GOKwOpwTIVDU9ubM33ceXnxTueDijkKHRj uKnX4hVHbXyw6TjSaXTnLbm1djsHl1kLEOszqoFYlbdn7NypE5b1VDONn7wAwXlkU7tZ MNvTL9abGv2qETrri/ai3QGZa9TpV5nFUk92G4fR8/IHbtstROzc4TBJ3T/vKbGV3ksQ FqFUTRDayMr3AeH+NImrdEzgrnZiT9y16l2HQdW0GOV8zeJ2ws1r6mPx6fBUh83W4DSN Ng8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=T6o65kGG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a73-20020a63904c000000b004126e36e888si15753888pge.454.2022.07.13.02.48.45; Wed, 13 Jul 2022 02:48:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=T6o65kGG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235163AbiGMJrC (ORCPT + 65 others); Wed, 13 Jul 2022 05:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236268AbiGMJpo (ORCPT ); Wed, 13 Jul 2022 05:45:44 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E266F8962 for ; Wed, 13 Jul 2022 02:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=IzBRxpxGlNmts79l/1UzNlDg52Q2m506Q4iOlT8VG60=; t=1657705533; x=1658915133; b=T6o65kGGNDwOi+FB7t+KUQvXoIMCrfSvKZqqhccL1zkyeLE MvKYg7matncj3c1U3S0OFU92RFKqixPZadGCT/PRbnqXnRCqueyUHB7vpd5mXD7trK3mJl7kN1mvT 1nUMioTr7oB3ru/2KgfK0qakOHGM/o7BiEggvQrdiJj6h5VzfezWB4bM39Tv6Z8+POU6o6Wuh7zQw 2RDDfOHDlLK6EWL+yBrXRa9BsnWwP381XnH7oXG/0/guPuOi2oDDBy2vj02aLaUQStQVWxAD9jaBs AXsYtW2bo8bWayTXQu7m8WDWZ/cFJgl46X6ZAKMeGhykiYsw4uyGAdhs/M2DLb9w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1oBYvy-00EgvB-Na; Wed, 13 Jul 2022 11:45:30 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 76/76] wifi: cfg80211: set country_elem to NULL Date: Wed, 13 Jul 2022 11:45:02 +0200 Message-Id: <20220713114426.4af2e0d5839c.I1939ee155c2c3fc0caa78cee7a5c162395a47a8c@changeid> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220713094502.163926-1-johannes@sipsolutions.net> References: <20220713094502.163926-1-johannes@sipsolutions.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg The link loop will always have a valid link so that it's always set, but static checkers don't always see that, so set it to NULL explicitly. Fixes: efbabc116500 ("cfg80211: Indicate MLO connection info in connect and roam callbacks") Signed-off-by: Johannes Berg --- net/wireless/sme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/sme.c b/net/wireless/sme.c index 00be498aab2e..8e8a79bd237c 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -723,7 +723,7 @@ void __cfg80211_connect_result(struct net_device *dev, bool wextev) { struct wireless_dev *wdev = dev->ieee80211_ptr; - const struct element *country_elem; + const struct element *country_elem = NULL; const u8 *country_data; u8 country_datalen; #ifdef CONFIG_CFG80211_WEXT -- 2.36.1