diff options
author | Nikita Zhandarovich <[email protected]> | 2023-04-17 06:32:42 -0700 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-04-19 13:42:56 +0100 |
commit | 86a24e99c97234f87d9f70b528a691150e145197 (patch) | |
tree | dc4d137506ce8e10cf8af3f564b599bc00688998 /scripts/gdb/linux/symbols.py | |
parent | 238787157d83969e5149c8e99787d5d90e85fbe5 (diff) |
ASoC: fsl_asrc_dma: fix potential null-ptr-deref
dma_request_slave_channel() may return NULL which will lead to
NULL pointer dereference error in 'tmp_chan->private'.
Correct this behaviour by, first, switching from deprecated function
dma_request_slave_channel() to dma_request_chan(). Secondly, enable
sanity check for the resuling value of dma_request_chan().
Also, fix description that follows the enacted changes and that
concerns the use of dma_request_slave_channel().
Fixes: 706e2c881158 ("ASoC: fsl_asrc_dma: Reuse the dma channel if available in Back-End")
Co-developed-by: Natalia Petrova <[email protected]>
Signed-off-by: Nikita Zhandarovich <[email protected]>
Acked-by: Shengjiu Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions