Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3786677iog; Tue, 28 Jun 2022 02:47:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqSEOQPBoT9PZH2FXLU+hSCJiv84aHdVrFnaiGqHGd/UYpH41RAryvjwC7YLRGwwGHJmKz X-Received: by 2002:a17:902:da82:b0:16a:7ca5:36c0 with SMTP id j2-20020a170902da8200b0016a7ca536c0mr2797523plx.27.1656409644815; Tue, 28 Jun 2022 02:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656409644; cv=none; d=google.com; s=arc-20160816; b=Jfk9QhtacmVVEuZxyd+n6YcAdytdriTHzq6NMZ2c/St0TnKVhKSZUlE+PZ4hNyRw64 Q1ibBJswkGSsNRxjd0EyNq5w62T08jnHkU0loQSZL+TFkS6l1wrsp9nVknJg1Q/P4CRc QNiueb4TTDNKbBTty6Gwt96tRRucMVxXxzOcCAF34cec2ZImLiHxity2ORgsBYFYQKZl uuwQPX47I1UGIN6RwvschrKuCwVcsIVNgZWeGA/kQGl8hrQekI+hJ52vwK1AX90JENSO oEMH3WQAkJWVGnQisICh8+4mWKar0/kcSSNsMclJV4kjDyIWESBGkF20CLBMdpN4IczK sHpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=0KafZl+ZTvpCntfcc7aWx+nGJJzcpE2s1K4ZEmvDL30=; b=qIqz8VhHjz198gc8ieHpowRwOW3lhVyZN2Y9/76atmh2eoyMLqUVVpPZasNIgNfm8N KMXrvVp1o/xR3R4CF8v4zlFUftcHjnkSvhWLO6MBLNvT9Pu9TVj45ZrXdTZh+yLP3ncg OH7wj6pme0fWSbLa7LCMxth+KrcIOclj9EK/A8zmUvgUU34XehuRmHidaeO1ZE2CE+xh VSDc8rmgCwl5jty6QitkgJdO0cI6MrVwjdT6xOouSLfp3DipkeGw80OAJepOMdECPp7b I0qjc09IvGWKvpY+xyiWA7nSNls1Ul7kBxd+y34L3K9o0zjIZjU0O8gU3Hir+wW6Xw3S qwRg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc19-20020a17090325d300b001689d2e0094si17807719plb.459.2022.06.28.02.47.14; Tue, 28 Jun 2022 02:47:24 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245679AbiF1Jpw (ORCPT + 64 others); Tue, 28 Jun 2022 05:45:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241493AbiF1Jpr (ORCPT ); Tue, 28 Jun 2022 05:45:47 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57D6B25C40; Tue, 28 Jun 2022 02:45:45 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LXKR36CH6z1L8hM; Tue, 28 Jun 2022 17:43:27 +0800 (CST) Received: from huawei.com (10.175.112.208) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 17:45:41 +0800 From: Xu Qiang To: , , , , , CC: , , , , Subject: [PATCH -next] wifi: plfxlc: Use eth_zero_addr() to assign zero address Date: Tue, 28 Jun 2022 09:39:39 +0000 Message-ID: <20220628093939.27063-1-xuqiang36@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.208] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Using eth_zero_addr() to assign zero address insetad of memset(). Reported-by: Hulk Robot Signed-off-by: Xu Qiang --- drivers/net/wireless/purelifi/plfxlc/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/purelifi/plfxlc/usb.c b/drivers/net/wireless/purelifi/plfxlc/usb.c index 8519cf0adfff..39e54b3787d6 100644 --- a/drivers/net/wireless/purelifi/plfxlc/usb.c +++ b/drivers/net/wireless/purelifi/plfxlc/usb.c @@ -562,7 +562,7 @@ static void sta_queue_cleanup_timer_callb(struct timer_list *t) if (tx->station[sidx].flag & STATION_HEARTBEAT_FLAG) { tx->station[sidx].flag ^= STATION_HEARTBEAT_FLAG; } else { - memset(tx->station[sidx].mac, 0, ETH_ALEN); + eth_zero_addr(tx->station[sidx].mac); tx->station[sidx].flag = 0; } } -- 2.17.1