Colin Ian King 994772632f 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>
2020-01-13 09:36:45 -08:00
..
2019-06-08 12:46:31 -07:00
2019-07-17 09:55:43 -07:00
2019-11-14 16:02:51 +05:30
2019-07-17 09:55:43 -07:00
2019-09-17 19:04:40 -07:00
2019-07-17 09:55:43 -07:00
2019-07-17 09:55:43 -07:00
2019-07-17 09:55:43 -07:00
2019-11-22 11:16:26 +05:30
2019-07-17 09:55:43 -07:00
2019-07-17 09:55:43 -07:00
2019-07-17 09:55:43 -07:00
2019-07-17 09:55:43 -07:00
2019-09-17 19:04:40 -07:00
2019-07-17 09:55:43 -07:00
2019-07-17 09:55:43 -07:00