Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6717586iob; Wed, 11 May 2022 03:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6hsdNjGo/8+37q+Jt7PQaJDVnkhejyO+uRL3Bvk+2hbS8XtN/ybsQL9V3+ITyu/fXW5Eo X-Received: by 2002:a63:111f:0:b0:3da:ed0d:7623 with SMTP id g31-20020a63111f000000b003daed0d7623mr6014017pgl.586.1652266778493; Wed, 11 May 2022 03:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652266778; cv=none; d=google.com; s=arc-20160816; b=xxc7mYMrMXgNthHfqrvDtM3gecb+XckVxUq7SfT/CNHXLn/6BdnK88cR6ED346/Ffa TDjQkCoIU3n/HMvMhN4ll1WDkoHiKYLYKgi+zXqhOyCHtsFlc1OwcdPA7zzPnxhYffsi q7w7dICdIa1Cky6SIB/w01uH1JA0nsNRKQSwLre2OktTuftnC4m9F5ZPQwr25uP/KfiF nfOwYNox5be4VwwxGEAtd6qgwflbh8eNWy9VFZktDzxXgNgRZNMhM3pJiu7by101NRpc pzyj7rCWFLIBExb62XzEazobxkdel/kU1U4yzBK/30/9xIl/IQDOb+LoBl4pC31ppcn0 03Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1KHuCmEjlgOiBzRGyizP/FHYHWqcewVx6BpX8+Zrej4=; b=0T+VWtZ3SD34D4H/5v3kEh2CpHrUKjDv7weX9pI8uwplrFo5EVz5IMXsnpnzMl/nxe 2KAu81sqdfcb8Jy0ib7YHGqrsBKmIHQvv2XnCyPdZHH9oxxYbBATv5yGcgm7YqpywQsP UcHbyvYyZdL1c/1XLUDylbVBlhmUoG4ZPu+0ofpkzJ+b8c14pzY/A6AELOGsTC2xx6lx dKZCD8Cwgd5LCOTdDdTBzdn6zoGzHYpcUP8Q6RIqz3yGb29Xkf2X4N2HaVW6nnfuEskC MwIXECLVV6gOjZdxfURirPNkW93TVDa4UsVvX1LCdDBvN19l77kch8R6RW/ti6Hav8ZP 0jcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Dq3tx9ac; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020a63e353000000b003abaf9f07aasi2566109pgj.371.2022.05.11.03.59.22; Wed, 11 May 2022 03:59:38 -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=fail header.i=@nbd.name header.s=20160729 header.b=Dq3tx9ac; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235700AbiEKFGF (ORCPT + 99 others); Wed, 11 May 2022 01:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235336AbiEKFGA (ORCPT ); Wed, 11 May 2022 01:06:00 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91ADA1403D; Tue, 10 May 2022 22:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1KHuCmEjlgOiBzRGyizP/FHYHWqcewVx6BpX8+Zrej4=; b=Dq3tx9ac8TZO9AtTj5bjNGhKac d3KPoOIFgwa4uzLka8SdKY9IAbXYoKgatWn1jmjegjvJfcqo6ITqydRUNGKXSxo1b0d/E4kNl3lR7 eye9EAj4rHQee63XqlAub4q1dRVisDZLk+ZU3o3vOb16v7JEgB6nBgSsbWr+MyAH7Uls=; Received: from p200300daa70ef200e12105daa054647e.dip0.t-ipconnect.de ([2003:da:a70e:f200:e121:5da:a054:647e] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1noeXf-0002z2-TZ; Wed, 11 May 2022 07:05:43 +0200 Message-ID: <596e38fd-a563-b119-c541-0370304d299b@nbd.name> Date: Wed, 11 May 2022 07:05:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] net: ethernet: mediatek: ppe: fix wrong size passed to memset() Content-Language: en-US To: Yang Yingliang , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org References: <20220511030829.3308094-1-yangyingliang@huawei.com> From: Felix Fietkau In-Reply-To: <20220511030829.3308094-1-yangyingliang@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 11.05.22 05:08, Yang Yingliang wrote: > 'foe_table' is a pointer, the real size of struct mtk_foe_entry > should be pass to memset(). > > Fixes: ba37b7caf1ed ("net: ethernet: mtk_eth_soc: add support for initializing the PPE") > Signed-off-by: Yang Yingliang Acked-by: Felix Fietkau Thanks, - Felix