[media] media: ti-vpe: Free vpdma buffers in vpe_release
authorHarinarayan Bhatta <[email protected]>
Fri, 18 Nov 2016 23:20:20 +0000 (21:20 -0200)
committerMauro Carvalho Chehab <[email protected]>
Tue, 22 Nov 2016 09:04:20 +0000 (07:04 -0200)
Free vpdma buffers in vpe_release. Otherwise it was generating random
backtrace.

Signed-off-by: Harinarayan Bhatta <[email protected]>
Signed-off-by: Somnath Mukherjee <[email protected]>
Signed-off-by: Nikhil Devshatwar <[email protected]>
Signed-off-by: Benoit Parrot <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/ti-vpe/vpe.c

index 4b6e8839dd83a5a939e23dacdb86545487b8ed7e..f2b90d42b4084a4574485255b2cfbb0857e712d7 100644 (file)
@@ -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);