linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/dma: suspected missing null-check issue in dw-axi-dmac/dw-axi-dmac-platform.c
@ 2021-10-27 11:55 YE Chengfeng
  0 siblings, 0 replies; only message in thread
From: YE Chengfeng @ 2021-10-27 11:55 UTC (permalink / raw)
  To: Eugeniy.Paltsev, vkoul; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-27 11:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 11:55 drivers/dma: suspected missing null-check issue in dw-axi-dmac/dw-axi-dmac-platform.c YE Chengfeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).