Skip to content
Commit 99477263 authored by Colin Ian King's avatar Colin Ian King Committed by Tony Lindgren
Browse files

dmaengine: ti: omap-dma: don't allow a null od->plat pointer to be dereferenced



Currently when the call to dev_get_platdata returns null the driver issues
a warning and then later dereferences the null pointer.  Avoid this issue
by returning -ENODEV error rather when the platform data is null and
change the warning to an appropriate error message.

Addresses-Coverity: ("Dereference after null check")
Fixes: 211010ae ("dmaengine: ti: omap-dma: Pass sdma auxdata to driver and use it")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 37b156ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment