From: Harinarayan Bhatta Date: Fri, 18 Nov 2016 23:20:20 +0000 (-0200) Subject: [media] media: ti-vpe: Free vpdma buffers in vpe_release X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f43aa420a89a4a17117e21553283e2a50cf86df8;p=linux-beck.git [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: Harinarayan Bhatta Signed-off-by: Somnath Mukherjee Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 4b6e8839dd83..f2b90d42b408 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers/media/platform/ti-vpe/vpe.c @@ -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);