diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-01-09 13:19:53 +0000 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2020-01-13 09:36:45 -0800 |
commit | 994772632f006e97addd20277a820058bb0fd481 (patch) | |
tree | 88686c7fe7a8512f5c5c66c19aa6258698fce5ff /drivers/dma/idma64.c | |
parent | 37b156ecf71ab74f8e991562f8d13825aaf07512 (diff) | |
download | linux-994772632f006e97addd20277a820058bb0fd481.tar.gz linux-994772632f006e97addd20277a820058bb0fd481.tar.bz2 linux-994772632f006e97addd20277a820058bb0fd481.zip |
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: 211010aeb097 ("dmaengine: ti: omap-dma: Pass sdma auxdata to driver and use it")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/dma/idma64.c')
0 files changed, 0 insertions, 0 deletions