diff options
| author | Kishon Vijay Abraham I <[email protected]> | 2021-10-31 03:24:11 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2021-11-09 05:54:06 +0000 |
| commit | eb91224e47ec33a0a32c9be0ec0fcb3433e555fd (patch) | |
| tree | 4205f3761a61cc35fc9202465a59f60bd9b7aa48 /drivers/fpga | |
| parent | dmaengine: ti: k3-udma: Set bchan to NULL if a channel request fail (diff) | |
| download | kernel-eb91224e47ec33a0a32c9be0ec0fcb3433e555fd.tar.gz kernel-eb91224e47ec33a0a32c9be0ec0fcb3433e555fd.zip | |
dmaengine: ti: k3-udma: Set r/tchan or rflow to NULL if request fail
udma_get_*() checks if rchan/tchan/rflow is already allocated by checking
if it has a NON NULL value. For the error cases, rchan/tchan/rflow will
have error value and udma_get_*() considers this as already allocated
(PASS) since the error values are NON NULL. This results in NULL pointer
dereference error while de-referencing rchan/tchan/rflow.
Reset the value of rchan/tchan/rflow to NULL if a channel request fails.
CC: [email protected]
Acked-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/fpga')
0 files changed, 0 insertions, 0 deletions
