Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f43aa420 authored by Harinarayan Bhatta's avatar Harinarayan Bhatta Committed by Mauro Carvalho Chehab
Browse files

[media] media: ti-vpe: Free vpdma buffers in vpe_release



Free vpdma buffers in vpe_release. Otherwise it was generating random
backtrace.

Signed-off-by: default avatarHarinarayan Bhatta <harinarayan@ti.com>
Signed-off-by: default avatarSomnath Mukherjee <somnath@ti.com>
Signed-off-by: default avatarNikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 072915b5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2182,6 +2182,9 @@ static int vpe_release(struct file *file)
	vpdma_free_desc_list(&ctx->desc_list);
	vpdma_free_desc_buf(&ctx->mmr_adb);

	vpdma_free_desc_buf(&ctx->sc_coeff_v);
	vpdma_free_desc_buf(&ctx->sc_coeff_h);

	v4l2_fh_del(&ctx->fh);
	v4l2_fh_exit(&ctx->fh);
	v4l2_ctrl_handler_free(&ctx->hdl);