commit | 7b821a6485c943edc752a94260a29116237f9153 | [log] [tgz] |
---|---|---|
author | Amelie Delaunay <amelie.delaunay@st.com> | Tue Jun 27 17:45:20 2017 +0200 |
committer | Mark Brown <broonie@kernel.org> | Wed Jun 28 20:00:55 2017 +0100 |
tree | a6054e67cc1921ee67e8751ed16eb2709f92d875 | |
parent | c67ad368cf75d4999d5ef86543d082b4b35dd2d7 [diff] |
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: Amelie Delaunay <amelie.delaunay@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>