aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2023-01-03 09:34:35 +0000
committerGreg Kroah-Hartman <[email protected]>2023-01-19 13:54:56 +0000
commite8914b52e5b024e4af3d810a935fe0805eee8a36 (patch)
treec7eeb2fef70b03621ed19a98141fc3dce9196b94 /scripts/clang-tools/gen_compile_commands.py
parenttty: serial: qcom-geni-serial: fix slab-out-of-bounds on RX FIFO buffer (diff)
downloadkernel-e8914b52e5b024e4af3d810a935fe0805eee8a36.tar.gz
kernel-e8914b52e5b024e4af3d810a935fe0805eee8a36.zip
serial: pch_uart: Pass correct sg to dma_unmap_sg()
A local variable sg is used to store scatterlist pointer in pch_dma_tx_complete(). The for loop doing Tx byte accounting before dma_unmap_sg() alters sg in its increment statement. Therefore, the pointer passed into dma_unmap_sg() won't match to the one given to dma_map_sg(). To fix the problem, use priv->sg_tx_p directly in dma_unmap_sg() instead of the local variable. Fixes: da3564ee027e ("pch_uart: add multi-scatter processing") Cc: [email protected] Signed-off-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions