On Mon, Jul 6, 2020 at 5:18 PM Dave Jiang <dave.jiang@xxxxxxxxx> wrote: > > dma_request_chan() is expected to return ERR_PTR rather than NULL. This > triggered a crash in pl011_dma_probe() when dma_device_list is empty > and returning NULL. Fix return of NULL ptr to ERR_PTR(-ENODEV). > > Fixes: deb9541f5052 ("dmaengine: check device and channel list for empty") > Reported-by: Arnd Bergmann <arnd@xxxxxxxx> It was really Reported-by: Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> Though I did the analysis and found what caused the problem. The fix looks good, Acked-by: Arnd Bergmann <arnd@xxxxxxxx>