+3
−7
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
chan->desc is always set to NULL when a DMA transfer is complete. As a DMA transfer could be complete during the call of stm32_dma_tx_status, we need to be sure that chan->desc is not NULL before using this variable to avoid a null pointer deference issue. Signed-off-by:M'boumba Cedric Madianga <cedric.madianga@gmail.com> Reviewed-by:
Ludovic BARRE <ludovic.barre@st.com> Signed-off-by:
Vinod Koul <vinod.koul@intel.com>