mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mtd: rawnand: cadence: Fix incorrect variable dereference
@ 2026-11-24  9:24 Miquel Raynal
  2026-11-24  9:24 ` [PATCH v2 1/3] mtd: rawnand: cadence: Fix DMA device dereference when DMA is disabled Miquel Raynal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Miquel Raynal @ 2026-11-24  9:24 UTC (permalink / raw)
  To: Richard Weinberger, Vignesh Raghavendra, Niravkumar L Rabara
  Cc: Thomas Petazzoni, linux-mtd, linux-kernel, Miquel Raynal,
	kernel test robot, Dan Carpenter, stable

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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-24  9:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24  9:24 [PATCH v2 0/3] mtd: rawnand: cadence: Fix incorrect variable dereference Miquel Raynal
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

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®