2021-10-27 21:27:10

by YE Chengfeng

[permalink] [raw]
Subject: drivers/dma: suspected missing null-check issue in dw-axi-dmac/dw-axi-dmac-platform.c

Hi,

https://github.com/torvalds/linux/blob/9840cfcb97fc8b6aa7b36cec3cc3fd763f14052e/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c#L982

We notice that null-check for the return pointer of vchan_next_desc exsits at #line 395, but is missing at #line 982 and #line 1018. Could it be a potential null-pointer-dereference pointer?

This is detected by our experimental static analysis tool, it could be false positive, we manually check and report those we think may be true issues. Would you like to have a look at them?

Thanks so much,
Chengfeng