dmaengine: sprd: Fix potential NULL dereference in sprd_dma_probe()
Subsystems (2)
Vinod Koul
AppliedQuoted 5 lines · Wei Yongjun
platform_get_resource()may fail and return NULL, so we should better check it's return value to avoid a NULL pointer dereference a bit later in the code.This is detected by Coccinelle semantic patch.
Applied, thanks