mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 16:47:05 +07:00
[media] exynos4-is: Correct clean up sequence on error path in fimc_is_probe()
The memory allocator is being initialized before registering the subdevs so reverse the cleanup sequence to avoid trying unregister not registered subdevs. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
84f1445671
commit
da8cec30b0
@ -867,10 +867,10 @@ static int fimc_is_probe(struct platform_device *pdev)
|
||||
|
||||
err_dfs:
|
||||
fimc_is_debugfs_remove(is);
|
||||
err_vb:
|
||||
vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
|
||||
err_sd:
|
||||
fimc_is_unregister_subdevs(is);
|
||||
err_vb:
|
||||
vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
|
||||
err_irq:
|
||||
free_irq(is->irq, is);
|
||||
err_clk:
|
||||
|
Loading…
Reference in New Issue
Block a user