diff options
| author | Biju Das <[email protected]> | 2021-08-18 10:14:50 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-08-19 17:21:22 +0000 |
| commit | 4b14f17912052a6963580dfba04781cfe6ccba02 (patch) | |
| tree | aeb270415d3981a192fbd072bd9d38218a1d1e3a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | ASoC: fsl_rpmsg: Check -EPROBE_DEFER for getting clocks (diff) | |
| download | kernel-4b14f17912052a6963580dfba04781cfe6ccba02.tar.gz kernel-4b14f17912052a6963580dfba04781cfe6ccba02.zip | |
ASoC: sh: rz-ssi: Improve error handling in rz_ssi_dma_request function
dma_request_chan() returns error pointer in case of failures, but
the rz_ssi_dma_request() checked for NULL pointer instead.
This patch fixes the issue by checking for ERR_PTR() instead of
NULL and sets the DMA pointers to NULL in error case so that ssi
can fallback to PIO mode.
Fixes: 26ac471c5354 ("ASoC: sh: rz-ssi: Add SSI DMAC support")
Signed-off-by: Biju Das <[email protected]>
Reviewed-by: Lad Prabhakar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
