Skip to contentSkip to conversation

dmaengine: sprd: Fix potential NULL dereference in sprd_dma_probe()

-next Vinod Koul 1 participant 1 message May 7, 2018

Subsystems (2)
lore
Share & tools
lore

Vinod Koul

author Applied
#0 lore raw
Quoted 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