]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: aspeed: Fix an error handling path in aspeed_video_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 6 Mar 2022 18:08:07 +0000 (19:08 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:24:27 +0000 (09:24 +0200)
commitbaebe572be48b26a6c68f14c1bed7eb810911ebd
treec347a75614f5816fae90630ad77d4f3bd8e22e63
parent97a724519e8652808016df2b7626b11dc51f84c9
media: aspeed: Fix an error handling path in aspeed_video_probe()

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit 310fda622bbd38be17fb444f7f049b137af3bc0d ]

A dma_free_coherent() call is missing in the error handling path of the
probe, as already done in the remove function.

In fact, this call is included in aspeed_video_free_buf(). So use the
latter both in the error handling path of the probe and in the remove
function.
It is easier to see the relation with aspeed_video_alloc_buf() this way.

Fixes: d2b4387f3bdf ("media: platform: Add Aspeed Video Engine driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/media/platform/aspeed-video.c