aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorAmelie Delaunay <[email protected]>2023-10-04 18:35:28 +0200
committerVinod Koul <[email protected]>2023-10-09 11:10:30 +0530
commit81337b9a72dc58a5fa0ae8a042e8cb59f9bdec4a (patch)
treef34599eba969d8e06b32e869239dfaea2c726d79 /lib/test_fortify/write_overflow-strncpy-src.c
parent0618c077a8c20e8c81e367988f70f7e32bb5a717 (diff)
dmaengine: stm32-mdma: abort resume if no ongoing transfer
chan->desc can be null, if transfer is terminated when resume is called, leading to a NULL pointer when retrieving the hwdesc. To avoid this case, check that chan->desc is not null and channel is disabled (transfer previously paused or terminated). Fixes: a4ffb13c8946 ("dmaengine: Add STM32 MDMA driver") Signed-off-by: Amelie Delaunay <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions