From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Niravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
Miquel Raynal <miquel.raynal@bootlin.com>,
kernel test robot <lkp@intel.com>,
Dan Carpenter <error27@gmail.com>,
stable@vger.kernel.org
Subject: [PATCH v2 0/3] mtd: rawnand: cadence: Fix incorrect variable dereference
Date: Tue, 24 Nov 2026 10:24:21 +0100 [thread overview]
Message-ID: <20261124-perso-upstreaming-rawnand-fixes-v2-0-69db17ad07bd@bootlin.com> (raw)
Small series fixing a report dating from September on the Cadence
controller. The last patch uses a newer API for one of the DMA helpers.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
Changes in v2:
- Add a patch resizing the bounce buffer before the BBT scan, which
fixes a potential heap buffer overflow reported by Sashiko.
- Convert the buffer mapping in cadence_nand_slave_dma_transfer()
to dmaengine_get_dma_device() so both ends of the transfer are mapped
against the same device, again as suggested by Sashiko.
- Link to v1: https://lore.kernel.org/r/20261119-perso-upstreaming-rawnand-fixes-v1-0-0c95641b550c@bootlin.com
---
Miquel Raynal (3):
mtd: rawnand: cadence: Fix DMA device dereference when DMA is disabled
mtd: rawnand: cadence: Resize the bounce buffer before the BBT scan
mtd: rawnand: cadence: Switch to dmaengine_get_dma_device()
drivers/mtd/nand/raw/cadence-nand-controller.c | 62 ++++++++++++++------------
1 file changed, 34 insertions(+), 28 deletions(-)
---
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
change-id: 20261119-perso-upstreaming-rawnand-fixes-fb73bd596d1c
Best regards,
--
Miquel Raynal <miquel.raynal@bootlin.com>
next reply other threads:[~2026-11-24 9:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 9:24 Miquel Raynal [this message]
2026-11-24 9:24 ` [PATCH v2 1/3] mtd: rawnand: cadence: Fix DMA device dereference when DMA is disabled Miquel Raynal
2026-11-24 9:24 ` [PATCH v2 2/3] mtd: rawnand: cadence: Resize the bounce buffer before the BBT scan Miquel Raynal
2026-11-24 9:24 ` [PATCH v2 3/3] mtd: rawnand: cadence: Switch to dmaengine_get_dma_device() Miquel Raynal
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=20261124-perso-upstreaming-rawnand-fixes-v2-0-69db17ad07bd@bootlin.com \
--to=miquel.raynal@bootlin.com \
--cc=error27@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=lkp@intel.com \
--cc=niravkumarlaxmidas.rabara@altera.com \
--cc=richard@nod.at \
--cc=stable@vger.kernel.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=vigneshr@ti.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®