]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: imx-sdma: Fix error checking in sdma_event_remap
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 8 Mar 2022 06:49:51 +0000 (06:49 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 14:18:51 +0000 (19:48 +0530)
commita21f568389072d9c2ee7b4622ca5da672ded913a
tree6cd03763bdc58a52e2e561e9c59cea0b80e87b8f
parentbdb86c9c1ef7b5961fef358319a1e192b085fd6c
dmaengine: imx-sdma: Fix error checking in sdma_event_remap

of_parse_phandle() returns NULL on errors, rather than error
pointers. Using NULL check on grp_np to fix this.

Fixes: e8316257f2cd ("dmaengine: imx-sdma: Add imx6sx platform support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220308064952.15743-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c