]> git.baikalelectronics.ru Git - 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)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 07:13:17 +0000 (09:13 +0200)
commit94bab343869a4e8e36b48217a6d0efd9df7b27aa
treed2ce1e76a1155ce8a6a34aaa86e8b585368fac20
parent939ba2eb28c8ae91413d09e942232f5a1614c9b9
media: aspeed: Fix an error handling path in aspeed_video_probe()

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: f812e9c7682b ("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>
drivers/media/platform/aspeed/aspeed-video.c