dmaengine: dw-axi-dmac: do not print NULL LLI during error
authorBen Dooks <ben.dooks@sifive.com>
Fri, 8 Jul 2022 17:01:52 +0000 (18:01 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Jul 2022 12:33:08 +0000 (18:03 +0530)
commit86cb0defe0e275453bc39e856bb523eb425a6537
tree29c0aa6ad2ce00e753e36e847efdd6c448e7dd01
parent4348d99efa01fe030eb625495de8b9f3578b5c7d
dmaengine: dw-axi-dmac: do not print NULL LLI during error

During debugging we have seen an issue where axi_chan_dump_lli()
is passed a NULL LLI pointer which ends up causing an OOPS due
to trying to get fields from it. Simply print NULL LLI and exit
to avoid this.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Link: https://lore.kernel.org/r/20220708170153.269991-3-ben.dooks@sifive.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c