Merge tag 'omap-for-v5.6/sdma-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/dt
Fix omap sdma handling for missing auxdata for v5.6 merge window Turns out I was overly optimistic about making platform data optional, and we still need it to pass various quirk flags. If the platform data is missing for whatever reason, we will currently try to access non-existing data later on. * tag 'omap-for-v5.6/sdma-fix-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: dmaengine: ti: omap-dma: don't allow a null od->plat pointer to be dereferenced Link: https://lore.kernel.org/r/pull-1579200367-372444@atomide.com Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
@@ -1658,8 +1658,10 @@ static int omap_dma_probe(struct platform_device *pdev)
|
||||
if (conf) {
|
||||
od->cfg = conf;
|
||||
od->plat = dev_get_platdata(&pdev->dev);
|
||||
if (!od->plat)
|
||||
dev_warn(&pdev->dev, "no sdma auxdata needed?\n");
|
||||
if (!od->plat) {
|
||||
dev_err(&pdev->dev, "omap_system_dma_plat_info is missing");
|
||||
return -ENODEV;
|
||||
}
|
||||
} else {
|
||||
od->cfg = &default_cfg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user