[PATCH] mtd: nand: qpic_common: use {cmd,data}_sgl_nitems for sg_init_table()

Miquel Raynal miquel.raynal at bootlin.com
Mon Sep 1 05:28:09 PDT 2025


On Mon, 11 Aug 2025 10:30:42 +0200, Gabor Juhos wrote:
> Since commit ddaad4ad774d ("mtd: nand: qpic_common: prevent out of
> bounds access of BAM arrays"), the {cmd,data}_sgl_nitems members in
> the 'bam_transaction' structure are containing the number of elements
> in the cmd/data scatter-gather lists.
> 
> Change the qcom_clear_bam_transaction() function to use these numbers
> while reinitializing the sg lists instead of recomputing the number of
> elements to make it less error prone.
> 
> [...]

Applied to nand/next, thanks!

[1/1] mtd: nand: qpic_common: use {cmd,data}_sgl_nitems for sg_init_table()
      commit: 5b5dc7db5a8dc2c221526acf81b323ec1f972d0f

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl




More information about the linux-mtd mailing list