spi: stm32: fix potential dereference null return value
This patch fixes the usage of rx_dma_desc and tx_dma_desc pointers
returned by dmaengine_prep_slave_sg, which can be null.
Detected by CoverityScan, CID#1446587 ("Dereference null return value")
Reported-by:  Colin Ian King <colin.king@canonical.com>
Signed-off-by:
Colin Ian King <colin.king@canonical.com>
Signed-off-by:  Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by:
Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by:  Mark Brown <broonie@kernel.org>
Mark Brown <broonie@kernel.org>
Loading
Please register or sign in to comment
