From: Cyrille Pitchen <cyrille.pitchen@atmel.com> To: Marek Vasut <marex@denx.de>, Dan Carpenter <dan.carpenter@oracle.com>, David Woodhouse <dwmw2@infradead.org>, Graham Moore <grmoore@opensource.altera.com> Cc: kernel-janitors@vger.kernel.org, Brian Norris <computersforpeace@gmail.com>, linux-mtd@lists.infradead.org Subject: Re: [patch 1/2] mtd: spi-nor: Off by one in cqspi_setup_flash() Date: Mon, 28 Nov 2016 08:19:18 +0000 [thread overview] Message-ID: <6be2afea-0981-b625-1c8a-6511e20db759@atmel.com> (raw) In-Reply-To: <360bddfc-0495-8836-41ef-4121517011a3@denx.de> Le 14/10/2016 à 09:19, Marek Vasut a écrit : > On 10/13/2016 10:06 AM, Dan Carpenter wrote: >> There are CQSPI_MAX_CHIPSELECT elements in the ->f_pdata array so the > >> should be >=. >> >> Fixes: 140623410536 ('mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller') >> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > Reviewed-by: Marek Vasut <marex@denx.de> Applied to git://github.com/spi-nor/linux.git Thanks! > >> diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c >> index d403ba7..944863b 100644 >> --- a/drivers/mtd/spi-nor/cadence-quadspi.c >> +++ b/drivers/mtd/spi-nor/cadence-quadspi.c >> @@ -1082,7 +1082,7 @@ static int cqspi_setup_flash(struct cqspi_st *cqspi, struct device_node *np) >> goto err; >> } >> >> - if (cs > CQSPI_MAX_CHIPSELECT) { >> + if (cs >= CQSPI_MAX_CHIPSELECT) { >> dev_err(dev, "Chip select %d out of range.\n", cs); >> goto err; >> } >> > > -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Cyrille Pitchen <cyrille.pitchen@atmel.com> To: Marek Vasut <marex@denx.de>, Dan Carpenter <dan.carpenter@oracle.com>, David Woodhouse <dwmw2@infradead.org>, Graham Moore <grmoore@opensource.altera.com> Cc: <kernel-janitors@vger.kernel.org>, Brian Norris <computersforpeace@gmail.com>, <linux-mtd@lists.infradead.org> Subject: Re: [patch 1/2] mtd: spi-nor: Off by one in cqspi_setup_flash() Date: Mon, 28 Nov 2016 09:19:18 +0100 [thread overview] Message-ID: <6be2afea-0981-b625-1c8a-6511e20db759@atmel.com> (raw) In-Reply-To: <360bddfc-0495-8836-41ef-4121517011a3@denx.de> Le 14/10/2016 à 09:19, Marek Vasut a écrit : > On 10/13/2016 10:06 AM, Dan Carpenter wrote: >> There are CQSPI_MAX_CHIPSELECT elements in the ->f_pdata array so the > >> should be >=. >> >> Fixes: 140623410536 ('mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller') >> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > Reviewed-by: Marek Vasut <marex@denx.de> Applied to git://github.com/spi-nor/linux.git Thanks! > >> diff --git a/drivers/mtd/spi-nor/cadence-quadspi.c b/drivers/mtd/spi-nor/cadence-quadspi.c >> index d403ba7..944863b 100644 >> --- a/drivers/mtd/spi-nor/cadence-quadspi.c >> +++ b/drivers/mtd/spi-nor/cadence-quadspi.c >> @@ -1082,7 +1082,7 @@ static int cqspi_setup_flash(struct cqspi_st *cqspi, struct device_node *np) >> goto err; >> } >> >> - if (cs > CQSPI_MAX_CHIPSELECT) { >> + if (cs >= CQSPI_MAX_CHIPSELECT) { >> dev_err(dev, "Chip select %d out of range.\n", cs); >> goto err; >> } >> > >
next prev parent reply other threads:[~2016-11-28 8:19 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-10-13 8:06 [patch 1/2] mtd: spi-nor: Off by one in cqspi_setup_flash() Dan Carpenter 2016-10-13 8:06 ` Dan Carpenter 2016-10-14 7:19 ` Marek Vasut 2016-10-14 7:19 ` Marek Vasut 2016-11-28 8:19 ` Cyrille Pitchen [this message] 2016-11-28 8:19 ` Cyrille Pitchen
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=6be2afea-0981-b625-1c8a-6511e20db759@atmel.com \ --to=cyrille.pitchen@atmel.com \ --cc=computersforpeace@gmail.com \ --cc=dan.carpenter@oracle.com \ --cc=dwmw2@infradead.org \ --cc=grmoore@opensource.altera.com \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-mtd@lists.infradead.org \ --cc=marex@denx.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.