From patchwork Wed Oct 19 08:26:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4714 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp213904wrs; Wed, 19 Oct 2022 02:11:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM69YMxeljvhhircSnVKYkU8PZHlXH6h7Hq4pC7eD+ddBeF5bZ5nTk8xzmaZpJdQcUhNm/+D X-Received: by 2002:a05:6402:1941:b0:457:13a:cce9 with SMTP id f1-20020a056402194100b00457013acce9mr6577350edz.265.1666170684400; Wed, 19 Oct 2022 02:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666170684; cv=none; d=google.com; s=arc-20160816; b=iIOn0wPrQkrKMInMzdmNqyBWTMq+nFwM374j1VC2JU7ehtpR1OKgePelZHlSXTCrU7 d+MKvLSAAyY6CnhCBSkBVkMjiyKoUTFqJG6+z9Iiwe8Egna/mq9VonIJV8QC9rNrAbjn lhgkBnZLJaGvh6ur9mAnFmDiv80x3a828PHvOUSxr+v/DKLwu3Gi0aAC4DiVXi9yJPO5 xz582nU20TNWspvk6CwOFrhOY7De8nLHuT+G6tTLiFoyllTLD4io4TaBCmw7SH13OtQi vE6NFplQjbm9v8H015WvZz2dm9N8m/fghnKm3J6/XA1iOT1SIbfIlTZWLOKtwSA8W7xt uHZA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZGqAC2cvXFobH69MHozHeP82BOM6MhWD2AOvD81hul8=; b=t66YWncIcR3MiL6GrHItZ4uZvMxIlaeHt7g1HZcnyRdPHdVpHsiVxrl2Xon4q07680 2F9NcN2saBBZy+bv2GXa6RHEAIGT1lRkSYOR2tVzVVrTDaNmvB6LBYMLai8ai7wIrGRK kMGa/k7mfNGOOOQnxr79WuBgg3M9yW98Fc4i99ujaGBZVozo5WRlliQUNi7I7WkPgGN9 7sfR79qceZ6pYeKC6uVVM2XF1CdCX1Nt7h1dhJHdJ3PgHjlzjbfAlrX3JscH4IdhlX5L 8vbPvRK0OzeENcE+/Pe+CrGASsRrqe9+gCkxFi6zFHmsPsBkTNC7paiy43O3xwZeqZgx u2zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r2Zv6Nvt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa26-20020a1709076d1a00b00741c0bd7061si14087927ejc.644.2022.10.19.02.10.59; Wed, 19 Oct 2022 02:11:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=r2Zv6Nvt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232580AbiJSJHb (ORCPT + 99 others); Wed, 19 Oct 2022 05:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232770AbiJSJFF (ORCPT ); Wed, 19 Oct 2022 05:05:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11DB1B3B2A; Wed, 19 Oct 2022 01:59:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D6645617D6; Wed, 19 Oct 2022 08:50:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E58DBC433C1; Wed, 19 Oct 2022 08:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169445; bh=Y3IO5HhywAPti2cGUGNnM3/p1KnERdnF6bkopTa9wOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r2Zv6NvtFEpY1eNkxKljG9SlgliWB9yxGjt6EsfH3Wd4dYfaP2t+wHqYjnD/BKZDW 90CjziSs3m0/lrGeOar7jnsadsev6IRwWw8ug5iIK9S+M4sY3sA7Y4BbGJr02O+NlN w/ke77ouZe6MiyyXuotnv3HT4ehE7xe52+G6+Nts= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Felix Fietkau , Sasha Levin Subject: [PATCH 6.0 280/862] wifi: mt76: mt7915: fix an uninitialized variable bug Date: Wed, 19 Oct 2022 10:26:07 +0200 Message-Id: <20221019083302.394228816@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747106591104719743?= X-GMAIL-MSGID: =?utf-8?q?1747106591104719743?= From: Dan Carpenter [ Upstream commit b5ee771c84082b4e54cc39d9d9a2dd239e4f6b86 ] Smatch complains that: drivers/net/wireless/mediatek/mt76/mt7915/mac.c:428 mt7915_mac_fill_rx() error: uninitialized symbol 'msta'. It looks like this was supposed to be initialized to NULL. Fixes: 0880d40871d1 ("mt76: connac: move mt76_connac2_reverse_frag0_hdr_trans in mt76-connac module") Signed-off-by: Dan Carpenter Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index 60ae834d95a6..4ddcd3afa428 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -232,7 +232,7 @@ mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb) bool unicast, insert_ccmp_hdr = false; u8 remove_pad, amsdu_info; u8 mode = 0, qos_ctl = 0; - struct mt7915_sta *msta; + struct mt7915_sta *msta = NULL; bool hdr_trans; u16 hdr_gap; u16 seq_ctrl = 0;