aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorYemike Abhilash Chandra <[email protected]>2025-04-17 07:55:21 +0000
committerVinod Koul <[email protected]>2025-04-17 15:03:34 +0000
commit8ca9590c39b69b55a8de63d2b21b0d44f523b43a (patch)
treedcecae49e5a1b3a151474b13349fec5668db9e3a /scripts/gcc-plugins/randomize_layout_plugin.c
parentdmaengine: Revert "dmaengine: dmatest: Fix dmatest waiting less when interrup... (diff)
downloadkernel-8ca9590c39b69b55a8de63d2b21b0d44f523b43a.tar.gz
kernel-8ca9590c39b69b55a8de63d2b21b0d44f523b43a.zip
dmaengine: ti: k3-udma: Use cap_mask directly from dma_device structure instead of a local copy
Currently, a local dma_cap_mask_t variable is used to store device cap_mask within udma_of_xlate(). However, the DMA_PRIVATE flag in the device cap_mask can get cleared when the last channel is released. This can happen right after storing the cap_mask locally in udma_of_xlate(), and subsequent dma_request_channel() can fail due to mismatch in the cap_mask. Fix this by removing the local dma_cap_mask_t variable and directly using the one from the dma_device structure. Fixes: 25dcb5dd7b7c ("dmaengine: ti: New driver for K3 UDMA") Cc: [email protected] Signed-off-by: Vaishnav Achath <[email protected]> Acked-by: Peter Ujfalusi <[email protected]> Reviewed-by: Udit Kumar <[email protected]> Signed-off-by: Yemike Abhilash Chandra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions