diff options
| author | 2025-08-11 10:30:42 +0200 | |
|---|---|---|
| committer | 2025-08-28 14:23:20 +0200 | |
| commit | 5b5dc7db5a8dc2c221526acf81b323ec1f972d0f (patch) | |
| tree | 05642141fc34fed2f3ccee154147cca5fa01682a /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | mtd: nand: qpic-common: remove a bunch of unused defines (diff) | |
mtd: nand: qpic_common: use {cmd,data}_sgl_nitems for sg_init_table()
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.
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
