Skip to contentSkip to conversation

media: ti-vpe: Free vpdma buffers in vpe_release

PATCH Superseded Benoit Parrot 1 participant 1 message Sep 28, 2016 Media (V4L/DVB)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 10/35 media: ti-vpe: Free vpdma buffers in vpe_release

From: Harinarayan Bhatta <[email protected]>

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

---
 drivers/media/platform/ti-vpe/vpe.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/media/platform/ti-vpe/vpe.c +3 -0
index b66b55322dd4..17451237220c 100644
@@ -2183,6 +2183,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);
Signature · 1 line
2.9.0