From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Tue, 05 Feb 2019 19:07:39 +0000 Subject: Re: [PATCH 1/3] mtd: rawnand: meson: Fix a limit test in meson_nfc_select_chip() Message-Id: <20190205200739.5e4ff5f3@xps13> List-Id: References: <20190201082922.GC8459@kadam> In-Reply-To: <20190201082922.GC8459@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Dan Carpenter Cc: Boris Brezillon , Richard Weinberger , kernel-janitors@vger.kernel.org, Marek Vasut , Liang Yang , linux-mtd@lists.infradead.org, Kevin Hilman , linux-amlogic@lists.infradead.org, Brian Norris , David Woodhouse Hi Dan, Dan Carpenter wrote on Fri, 1 Feb 2019 11:29:22 +0300: > This test is off by one because the > should be >=3D and it's also testing > against the wrong limit. The MAX_CE_NUM is the maximum size that > meson_chip->sels[] is allowed to be but meson_chip->nsels is the actual > size. >=20 > Fixes: 2d570b34b41a ("mtd: rawnand: meson: add support for Amlogic NAND f= lash controller ") > Signed-off-by: Dan Carpenter > --- > drivers/mtd/nand/raw/meson_nand.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 Series merged in nand/next with the original commit. Thanks, Miqu=C3=A8l