Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1200865ybj; Thu, 7 May 2020 17:40:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLSYKQKr2GlXdWQRPog4BWFFoE08JdQzy6e0BlXNpC1eDug7A0IjYc5wFWSsSCBWfn8TWiE X-Received: by 2002:aa7:c606:: with SMTP id h6mr47148edq.265.1588898404057; Thu, 07 May 2020 17:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588898404; cv=none; d=google.com; s=arc-20160816; b=sdANH18IPM58O2F0x+kSzgSGMfYrWmWRyjNX6As4I5wRo4C1AFjTO+B8m1HKUQLCi/ 6/6zJeUuFnP2QnTb8X2SjGHHDG57DWuvjdCQKhaf+N3mzGopuzOwellungdHc6OA7OP2 CRv8rpeuQVQq+vbv7Fs9t7PewqkMdSNPC/vjiIieWUEYVnOls+M7d12EhcQi2szoXe32 IuratbwxYPOL593WlESXk8JTkXDbGNokIbR8AGJdiErQ3lT9WMejjtnlsF0ZKmeH9c4k 9Daj3BTZr+SWw+C40fxm4lB6V6LvGFYR1MSxj1P+VqSqTaWY3XK5WcEIo3eOo53Vxrt4 QLOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=u8zWSywg4PKYniGGSuDahP1Hskmr9n+DVNNt9yNCWN4=; b=K8zvBUbWOKyJ3S8Eve/oBmMBbVob15PdbIPpmk1kkRzpKlBsKTMdit61VE9YUjRXXj 3Jq5Bf1Nk/jVPUIAw1QwXgtQ7dtPvFNi2uVXnoePEoC4Z3Zofee5fXK48Moq4mGZmdQT YF8tcVa5FTHkQGTXyByD7w6iO6f72WkF8+J8ib16eiOsd5bFpBzXwOaaTbuEDInn5r9O +znJoalC9PRyBQ4rN0+LLJy5hBNWO0cMITLf+eTGAu6HEzcFSfMgPlHLHS75g87I9Ft2 u7gMTgYXGyAvaeWyreItI4buh7uizPjV4JOr9MUlN1V2AarKsbRQ//edKMBjDusE4+pO FpgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si39674edp.2.2020.05.07.17.39.40; Thu, 07 May 2020 17:40:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726636AbgEHAft (ORCPT + 99 others); Thu, 7 May 2020 20:35:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726470AbgEHAft (ORCPT ); Thu, 7 May 2020 20:35:49 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1447FC05BD43; Thu, 7 May 2020 17:35:49 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5FC551193B1BD; Thu, 7 May 2020 17:35:48 -0700 (PDT) Date: Thu, 07 May 2020 17:35:47 -0700 (PDT) Message-Id: <20200507.173547.292658666015125038.davem@davemloft.net> To: ioana.ciornei@nxp.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, youri.querry_1@nxp.com, leoyang.li@nxp.com Subject: Re: [PATCH net] soc: fsl: dpio: properly compute the consumer index From: David Miller In-Reply-To: <20200505201429.24360-1-ioana.ciornei@nxp.com> References: <20200505201429.24360-1-ioana.ciornei@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 07 May 2020 17:35:48 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ioana Ciornei Date: Tue, 5 May 2020 23:14:29 +0300 > Mask the consumer index before using it. Without this, we would be > writing frame descriptors beyond the ring size supported by the QBMAN > block. > > Fixes: 3b2abda7d28c ("soc: fsl: dpio: Replace QMAN array mode with ring mode enqueue") > Signed-off-by: Ioana Ciornei Applied to net-next, thanks.