ASoC: Intel: catpt: Test dmaengine_submit() result before moving on
authorCezary Rojewski <cezary.rojewski@intel.com>
Thu, 16 Dec 2021 11:57:39 +0000 (12:57 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 17 Dec 2021 16:20:36 +0000 (16:20 +0000)
commit2a9a72e290d4a4741e673f86b9fba9bfb319786d
treea5a929ba4c35233abd291267b5d22ff21c185ad8
parent0f2ee77d2655bd4bb205fff16822e551159f41c9
ASoC: Intel: catpt: Test dmaengine_submit() result before moving on

After calling dmaengine_submit(), the submitted transfer descriptor
belongs to the DMA engine. Pointer to that descriptor may no longer be
valid after the call and should be tested before awaiting transfer
completion.

Reported-by: Kevin Tian <kevin.tian@intel.com>
Suggested-by: Dave Jiang <dave.jiang@intel.com>
Fixes: 4fac9b31d0b9 ("ASoC: Intel: Add catpt base members")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20211216115743.2130622-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/dsp.c