summaryrefslogtreecommitdiff
path: root/net/sctp/endpointola.c
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@foss.st.com>2023-10-04 18:35:28 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-19 23:08:54 +0200
commit8e7dfe9c2ac8fc92859e68eb0a00f52e2f3a6ebc (patch)
treec0758aab2978efe53207ccd9dbba9ebfcc3bf086 /net/sctp/endpointola.c
parent0796c534242da7bc218ab1eefd6dacc48300302c (diff)
dmaengine: stm32-mdma: abort resume if no ongoing transfer
commit 81337b9a72dc58a5fa0ae8a042e8cb59f9bdec4a upstream. 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 <amelie.delaunay@foss.st.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20231004163531.2864160-1-amelie.delaunay@foss.st.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sctp/endpointola.c')
0 files changed, 0 insertions, 0 deletions