Skip to content
Commit 8fcc3f7d authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Vinod Koul
Browse files

dmaengine: xilinx_dma: check for invalid vdma interleaved parameters



The VDMA HSIZE register (corresponding to sgl[0].size) is only 16bit wide /
the VSIZE register (corresponding to numf) is only 13bit wide, so reject
requests not fitting within that rather than silently transferring too
little data.

Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
Reviewed-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/20240105105956.1370220-1-peter@korsgaard.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 33b7db45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment